On Fri, Jul 18, 2008 at 6:12 AM, Ian Harry <[EMAIL PROTECTED]> wrote: > Hi Darren,
> /home/spxiwh/matplotlibinstall/lib64/python2.4/site-packages/matplotlib/__init__.py:801: > UserWarning: This call to matplotlib.use() has no effect > because the the backend has already been chosen; > matplotlib.use() must be called *before* pylab, matplotlib.pyplot, > or matplotlib.backends is imported for the first time. > > at the top of all of our plotting routine outputs now. > > This sounds like we have bugs in our code, which we need to deal with before > we can upgrade our numpy and matplotlib versions. Because of time > restraints, it is likely that upgrading of these modules on our systems will > not happen for a few months. Using MPLCONFIGDIR should stop most of our > failures anyway, I guess we can solve the rest by automatically retrying > failed jobs. > For your own sake, this use bug should be fixed because it means mpl is not doing what you think. The backend needs to be set before pylab is imported. The two main ways to set the backend are in the rc file and with the use directive. If you do the latter, make sure you put import matplotlib matplotlib.use('YourBackend') near the top of your main driver code, before you import pylab or any other modules which import it. You should also do this only in one place in your code. If you try and do it after you import pylab, and your backend is already set to something else from your rc files, your code will break . JDH ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users