Re: [Matplotlib-users] v0.98 comments

2008-07-11 Thread Darren Dale
Hi Neil, On Friday 11 July 2008 04:20:07 am Neil Pilgrim wrote: I'm not a regular 0.98 user right now (using debian stable 0.91 or similar in a python app) but was investigating the new documentation at http://matplotlib.sourceforge.net/doc/html/index.html and noticed a few things (typos?)

Re: [Matplotlib-users] scale a circle properly (not from shapefile)

2008-07-11 Thread Jeff Whitaker
KURT PETERS wrote: I am trying to do something similar to the plot_tissot.py example, but am having some problems. I would like to project a group of circles onto a map projection. Below is the code I developed, which doesn't work because I get the error: ==ERROR File

Re: [Matplotlib-users] error with text object properties using matplotlib 0.98.1

2008-07-11 Thread David M. Kaplan
Hi, Thanks for the suggestions. I have stopped using the usetex option. To make math and normal text match, I tried the following: rcParams['font.family'] = 'serif' rcParams['mathtext.fontset'] = 'stix' This didn't make them match - normal text looked to me like it was still sans-serif, while

Re: [Matplotlib-users] error with text object properties using matplotlib 0.98.1

2008-07-11 Thread Michael Droettboom
This works for me. Could you set the rcParam verbose.level to debug-annoying and send the output -- that will print some information about where it's looking for fonts and what it can and can not find. Cheers, Mike David M. Kaplan wrote: Hi, Thanks for the suggestions. I have stopped

Re: [Matplotlib-users] scale a circle properly (not from shapefile)

2008-07-11 Thread KURT PETERS
Thanks, that's exactly what I would like to do. I'll take a look. Regards, Kurt Original Message Follows From: Jeff Whitaker [EMAIL PROTECTED] To: KURT PETERS [EMAIL PROTECTED] CC: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] scale a circle properly (not from

Re: [Matplotlib-users] error with text object properties using matplotlib 0.98.1

2008-07-11 Thread David M. Kaplan
Hi, I gave this a shot, but it didn't print anything out. Attached is an example of a plot where the fonts don't match. In [4]: rcParams['verbose.level']='debug-annoying' In [5]: rcParams['mathtext.fontset'] = 'stix' In [6]: rcParams['font.family'] = 'serif' In [7]: plot(arange(10)) Out[7]:

Re: [Matplotlib-users] error with text object properties using matplotlib 0.98.1

2008-07-11 Thread Michael Droettboom
Sorry -- I forgot to mention that you need to put the verbose.level argument in your matplotlibrc file -- it can't be changed once matplotlib has been imported. Thanks, Mike David M. Kaplan wrote: Hi, I gave this a shot, but it didn't print anything out. Attached is an example of a plot

Re: [Matplotlib-users] scale a circle properly (not from shapefile)

2008-07-11 Thread Jeff Whitaker
KURT PETERS wrote: Thanks, that's exactly what I would like to do. I'll take a look. Regards, Kurt Kurt: I just added a tissot method to Basemap that does this (so you won't have to extend the Basemap class in the next version). The plot_tissot.py example has been updated to do this.

Re: [Matplotlib-users] Fwd: Re: Autonomous display of image/plot/figure

2008-07-11 Thread James K. Gruetzner
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 10 July 2008 18:50:12 you wrote: James K. Gruetzner wrote: I'm running Fedora 8, python 2.5.1, and matplotlib 0.91.2-1.fc8 from the yum repository. Backend is set to GTKAgg in my matplotlibrc file. (On this list top-posting is

[Matplotlib-users] twinx memory leak

2008-07-11 Thread laurent oget
I think i narrowed down the memory leak i have been chasing for a while. If i remove the call to twinx i get a slow leak, which would cause me trouble after a very long time. With the call to twinx, however i am losing thousands of objects at each loop. Thanks, Laurent import pylab as PL def

Re: [Matplotlib-users] twinx memory leak

2008-07-11 Thread laurent oget
i forgot two imports. import math import gc import pylab as PL def looptest(): while(1): fig=PL.figure(1) ax=fig.add_subplot(211) ax.set_position((0,0,0.9,0.45)) ax1=PL.twinx(ax) t=range(1000) st=[math.sin(x*0.01) for x in t]

Re: [Matplotlib-users] twinx memory leak

2008-07-11 Thread Michael Droettboom
Thanks for the report. So we can diagnose this, what version of matplotlib are you reporting this for? Also, you may be interested in the following FAQ (and the one following it): http://matplotlib.sourceforge.net/faq.html#LEAKS Cheers, Mike laurent oget wrote: i forgot two imports.

[Matplotlib-users] The who command in Ipython-PyLab

2008-07-11 Thread Eli Brosh
Hello, I am trying to use pylab interactively from the Ipython shell with the -pylab option on windows. Normally, the Ipython shell has the nice who command that enables one to see only the variables defined by him, rather than the many non-relevant output produced by the python dir() function.

Re: [Matplotlib-users] The who command in Ipython-PyLab

2008-07-11 Thread Fernando Perez
On Fri, Jul 11, 2008 at 12:02 PM, Eli Brosh [EMAIL PROTECTED] wrote: In [1]: a=2 In [2]: who a In [3]: from pylab import * In [4]: who Out[4]: function who at 0x0141FAF0 Why is this happening? Because pylab provides its own who _function_, which overrides the ipython command ('magic

Re: [Matplotlib-users] The who command in Ipython-PyLab

2008-07-11 Thread Eli Brosh
Thanks Fernando, I now tried %who. The result was a huge output, apparently containing all the pylab functions. This is exactly the thing I was trying to avoid. I wanted to use the who command to see only the variables I defined as part of the pylab session. Is there a way to do just this ?

Re: [Matplotlib-users] The who command in Ipython-PyLab

2008-07-11 Thread Fernando Perez
On Fri, Jul 11, 2008 at 12:19 PM, Eli Brosh [EMAIL PROTECTED] wrote: Thanks Fernando, I now tried %who. The result was a huge output, apparently containing all the pylab functions. This is exactly the thing I was trying to avoid. I wanted to use the who command to see only the variables I

Re: [Matplotlib-users] The who command in Ipython-PyLab

2008-07-11 Thread Eric Firing
Eli Brosh wrote: Thanks Fernando, I now tried %who. The result was a huge output, apparently containing all the pylab functions. This is exactly the thing I was trying to avoid. I wanted to use the who command to see only the variables I defined as part of the pylab session. Is there a

Re: [Matplotlib-users] v0.98 comments

2008-07-11 Thread Neil Pilgrim
Darren Dale wrote: On Friday 11 July 2008 04:20:07 am Neil Pilgrim wrote: Lastly, has anyone checked whether 0.98 still has the 'down key' bug for key-press events? (is there a bugzilla/tracker?) I'm not familiar with this issue. I've not used 0.98, and I just noticed that debian etch

Re: [Matplotlib-users] The who command in Ipython-PyLab

2008-07-11 Thread Eli Brosh
Thanks to Eric and Fernando I will try to update ipython (for some reason I have troubles with that in windows). The ipython -pylab[...] with who() command works but it seems to work only for arrays. i.e. with x = arange(20) it worked but not with x=1. Hence updating ipython remains the only way.

[Matplotlib-users] dynamically updated plots

2008-07-11 Thread Václav Šmilauer
Hello, I would like to get periodically updated plots: the data set grows at some rate (5 numbers/sec) and I would like to update all plots I have (may be multiple) once in 5 seconds, for example. I thought of storing Figure objects after creating the plots, then launch separate thread that

[Matplotlib-users] Axes.stem() doesn't draw stemlines if yscale is logarithmic

2008-07-11 Thread Dirk.Juelich
Hello, I tried to do a stem plot on an Axes with logarithmic scale, experiencing that the stemlines were not drawn... axes.py (svn trunk, 2008-07-08): def stem(self, x, y, linefmt='b-', markerfmt='bo', basefmt='r-'): [...] stemlines = [] for thisx, thisy in zip(x, y): l, =

[Matplotlib-users] Can't find current numpy 1.1 dependency

2008-07-11 Thread Michael Muratet
Greetings I am trying to install matplotlib 0.98.1 on python 2.5.1 on Mac OS X 10.5.3. The install breaks at the required dependancy numpy 1.1 because it thinks it has v 1.0.1. I have, in fact, installed numpy 1.1 and I can't figure out why the matplotlib installer is not seeing it. I am

[Matplotlib-users] Build script(s) not finding correct libraries

2008-07-11 Thread Michael Muratet
Greetings Having followed the build instructions for matplotlib on the website, I continue to get the error(s): sh-3.2# python setup.py build = = = = BUILDING MATPLOTLIB matplotlib: 0.98.1

[Matplotlib-users] v0.98 comments

2008-07-11 Thread Neil Pilgrim
Hi, I'm not a regular 0.98 user right now (using debian stable 0.91 or similar in a python app) but was investigating the new documentation at http://matplotlib.sourceforge.net/doc/html/index.html and noticed a few things (typos?) which I wanted to check. It does look good - ReST? - in

Re: [Matplotlib-users] error with text object properties using matplotlib 0.98.1

2008-07-11 Thread David M. Kaplan
Hi, Thanks for the suggestions. I have stopped using the usetex option. To make math and normal text match, I tried the following: rcParams['font.family'] = 'serif' rcParams['mathtext.fontset'] = 'stix' This didn't make them match - normal text looked to me like it was still sans-serif, while