[Matplotlib-users] Problem with text bounding box

2012-09-03 Thread Jakob Gager
Recently, I switched from matplotlib 0.99 to 1.0.1 and unfortunately discovered that my text scaling script stopped working properly. The script scales the given text to fit into the current figure. A quick example of what I'm doing (works in 0.99, but not in 1.0.1 and 1.1.1rc): import

[Matplotlib-users] how to avoid import backend in the batch job?

2012-09-03 Thread Chao YUE
Dear all, I have a module written by myself which use python-netcdf/matplotlib/numpy/basemap for treating and mapping of netcdf files. so in the module I have a line: import matplotlib.pyplot as plt But now I am using some function of this module which do not involve the visualisation. And I

Re: [Matplotlib-users] how to avoid import backend in the batch job?

2012-09-03 Thread Benjamin Root
On Monday, September 3, 2012, Chao YUE wrote: Dear all, I have a module written by myself which use python-netcdf/matplotlib/numpy/basemap for treating and mapping of netcdf files. so in the module I have a line: import matplotlib.pyplot as plt But now I am using some function of this

Re: [Matplotlib-users] A sad day for our community. John Hunter: 1968-2012.

2012-09-03 Thread Alan G Isaac
On 8/29/2012 10:32 PM, Fernando Perez wrote: http://numfocus.org/johnhunter My thanks to NumFOCUS for setting up this memorial fund so that Matplotlib users can say thank you to John. Alan Isaac -- Live Security

Re: [Matplotlib-users] how to avoid import backend in the batch job?

2012-09-03 Thread Chao YUE
Hi Ben, I changed the backend in matplotlibrc file. It works fine. Yet if I don't want to change the rc file, I guess I must change in the modules where matplotlib has been imported for the first time? cheers, Chao On Mon, Sep 3, 2012 at 3:30 PM, Benjamin Root ben.r...@ou.edu wrote: On

Re: [Matplotlib-users] how to avoid import backend in the batch job?

2012-09-03 Thread Damon McDougall
On Mon, Sep 3, 2012 at 6:08 PM, Chao YUE chaoyue...@gmail.com wrote: Yet if I don't want to change the rc file, I guess I must change in the modules where matplotlib has been imported for the first time? If you're changing the rc file in your home directory: ~/.matplotlib/matplotlibrc then

Re: [Matplotlib-users] Problem with text bounding box

2012-09-03 Thread Eric Firing
On 2012/09/03 1:38 AM, Jakob Gager wrote: Recently, I switched from matplotlib 0.99 to 1.0.1 and unfortunately discovered that my text scaling script stopped working properly. The script scales the given text to fit into the current figure. A quick example of what I'm doing (works in

[Matplotlib-users] animation framework problem

2012-09-03 Thread Gyro Funch
Hi, I am trying to create a multi-subplot animation with based loosely on the animation example code, subplots.py, at http://matplotlib.sourceforge.net/examples/animation/subplots.html A simplified version of the full code is shown at this gist: https://gist.github.com/3613113 I am having

Re: [Matplotlib-users] how to avoid import backend in the batch job?

2012-09-03 Thread Chao YUE
Thanks Damon, it's very clear now. I explicit set the backend as GTKAgg in my ipython user configuration file. and always set the backend to 'Agg' in my rc file. So that when I use ipython, I can see the window interactively, but when I use script, it also works :P Chao On Mon, Sep 3, 2012 at

Re: [Matplotlib-users] how to avoid import backend in the batch job?

2012-09-03 Thread Damon McDougall
On Mon, Sep 3, 2012 at 10:20 PM, Chao YUE chaoyue...@gmail.com wrote: Thanks Damon, it's very clear now. I explicit set the backend as GTKAgg in my ipython user configuration file. and always set the backend to 'Agg' in my rc file. So that when I use ipython, I can see the window