Tests and matplotlibrc

Hi,

Is there any way to make the tests force a certain default set of rcparams? When I first ran the test suite just now, I got a lot of image comparison failures because I have my default font set to 10 in my matplotlibrc. Changing this eliminated 13 of my 16 failures. I really don’t feel like having to edit my matplotlibrc every time I want to run the test suite.

Ryan

···


Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma
Sent from Norman, Oklahoma, United States

the config system will pick up a matplotlibrc file in the current dir
if there is one, so perhaps we should drop the rc file assumed by the
tests into the dir from which they are run

http://matplotlib.sourceforge.net/users/customizing.html

···

On Wed, May 20, 2009 at 10:12 AM, Ryan May <rmay31@...149...> wrote:

Hi,

Is there any way to make the tests force a certain default set of rcparams?
When I first ran the test suite just now, I got a lot of image comparison
failures because I have my default font set to 10 in my matplotlibrc.
Changing this eliminated 13 of my 16 failures. I really don't feel like
having to edit my matplotlibrc every time I want to run the test suite.

Thanks, I wasn’t aware of that. It seems that if I just put an empty matplotlibrc file in that directory, it serves the same purpose. Can I just check that in (perhaps containing only a clarifying comment) so that it stays in sync with the current matplotlib defaults?

Ryan

···

On Wed, May 20, 2009 at 10:20 AM, John Hunter <jdh2358@…149…> wrote:

On Wed, May 20, 2009 at 10:12 AM, Ryan May <rmay31@…149…> wrote:

Hi,

Is there any way to make the tests force a certain default set of rcparams?

When I first ran the test suite just now, I got a lot of image comparison

failures because I have my default font set to 10 in my matplotlibrc.

Changing this eliminated 13 of my 16 failures. I really don’t feel like

having to edit my matplotlibrc every time I want to run the test suite.

the config system will pick up a matplotlibrc file in the current dir

if there is one, so perhaps we should drop the rc file assumed by the

tests into the dir from which they are run

http://matplotlib.sourceforge.net/users/customizing.html


Ryan May
Graduate Research Assistant
School of Meteorology
University of Oklahoma

Not sure what is the best way here -- one is to put in an rc w/
everything uncommented for the tests, so that even if the mpl defaults
change the regression suite won't break. The other is to assume the
defaults in the test suite (empty rc) and if someone changes an rc
default it breaks the test suite. Perhaps James or Ted have a
view/preference?

JDH

···

On Wed, May 20, 2009 at 10:27 AM, Ryan May <rmay31@...149...> wrote:

Thanks, I wasn't aware of that. It seems that if I just put an empty
matplotlibrc file in that directory, it serves the same purpose. Can I just
check that in (perhaps containing only a clarifying comment) so that it
stays in sync with the current matplotlib defaults?