Karen Tracey wrote: > Hmm, the Ubuntu packaging for matplotlib seems to put a copy of > matplotlibrc only in /etc, where, I gather, it will not ever be used by > matplotlib? I guess one is supposed to copy it to one's home directory > and do per-user customization there. For my case, where the code is > running under Apache, I'd guess no matplotlibrc is being found so all > defaults are being used.
Karen, That seems a little odd; matplotlib doesn't look in /etc by default. Although I run ubuntu, I have never used the ubuntu package, so I have not run into this. The default matplotlibrc has been stripped down to a bare minimum: everything but the default backend selection is commented out. You may have already discovered this, but in case you haven't, you can find out where the active matplotlibrc is being found by using matplotlib_fname(): In [1]:import matplotlib In [2]:matplotlib.matplotlib_fname() Out[2]:'/usr/local/lib/python2.5/site-packages/matplotlib/mpl-data/matplotlibrc' The docstring explains the search order: Return the path to the rc file Search order: * current working dir * environ var MATPLOTLIBRC * HOME/.matplotlib/matplotlibrc * MATPLOTLIBDATA/matplotlibrc Thank you for the test script. I have added it to the "unit" subdirectory of matplotlib, after adding a short docstring. JDH may want to modify or move it. Eric ------------------------------------------------------------------------------ _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel