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

2012-09-03 Thread Jakob Gager
On 09/03/2012 08:57 PM, Eric Firing wrote: > It looks like you can either use the _get_layout() method (which > requires that you specify the renderer), or, if you know the text object > will be among the last 50 for which _get_layout() has been called, you > can use txt1.cached[txt1.get_prop_typ()

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 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 interactively, but when I us

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 8

[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 proble

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 i

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 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 just make a copy befo

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 wrote: > > > On Monday, Septembe

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 Vir

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

[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 wan

[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