From: John H. <jd...@gm...> - 2010-10-25 21:06:28
|
On Mon, Oct 25, 2010 at 3:41 PM, Daniel Hyams <dh...@gm...> wrote: > It doesn't really insist on it right? There are MATPLOTLIBDIR and > MPLCONFIGDIR environment variables. The former is for the location of > mpl-data, and is not really documented well (that I could find, anyway, but > I found it in the source code), and MPLCONFIGDIR specifies where your > configuration files for matplotlib are. This is where your font cache will > be, as well as your matplotlibrc. > > You can set these env variables within your code, before import of > matplotlib via os.environment. They should be better documented, but the MPLCONFIGDIR is in the FAQ http://matplotlib.sourceforge.net/faq/troubleshooting_faq.html#matplotlib-directory-location |