From: Tony S Yu [mailto:tonyyu@…1165…]>
I think your matplotlibrc file should be put in:
Thanks Tony, I'll give that a shot. Shouldn't keeping it in my current working directory work as well? One of the great things about using the matplotlibrc file on my Windows machine is that I can keep different files for different projects.
(Paul, I hope you don't mind if I bring this bump this back to the list).
Apparently I skimmed your original email and didn't see that you tried putting the file in your working directory. That should work. (My original response is still appropriate for a global rc file.)
As suggested on the mpl website (specifically: http://matplotlib.sourceforge.net/users/customizing.html), you can try printing out the path of the rc file being used by adding the following to your script:
>>> import matplotlib
>>> print matplotlib.matplotlib_fname()
Also, you may want to check that the working directory is where you think it is. For example, if you run a script from the terminal as:
$ python ~/path/to/file.py
Your working directory is '~' and not '~/path/to/'---so matplotlibrc file located in the same directory as file.py would not be in the working directory.
Otherwise, I have no idea why the matplotlibrc is not being found in the working directory.
On Nov 3, 2009, at 3:08 PM, <PHobson@...2850...> <PHobson@...2850... > wrote: