From: John H. <jdh...@ac...> - 2004-07-21 17:26:13
|
>>>>> "Vineet" == Vineet Jain <vi...@al...> writes: Vineet> Thanks for the information. It has been very Vineet> helpful. Matplotlib seems to be ignoring the use Vineet> command. When I change the value in .matplotlibrc it works Vineet> however adding the use('Agg') does not change the Vineet> backed. Do I need to do anything else? You must use the use command before importing matplotlib.matlab, as described on http://matplotlib.sourceforge.net/backends.html >>> import matplotlib >>> matplotlib.use('Agg') >>> from matplotlib.matlab import * Note that if you are using an IDE like pycrust, pythonwin, or IDLE, matplotlib.matlab may have already been loaded, and subsequent calls to use or 'from matplotlib.matlab import *' will have no effect unless you explicitly force a module reload. JDH |