[Matplotlib-users] polar() is not equal to ax.plot (where ax is a PolarAxes)?

2009-08-02 Thread plaf
Hi all, I have been trying both ways of plotting polar and found that they behave differently? Is it just me? I have sets of theta and R to plot, and when I plotted in console using polar() it produces different plot (!) than when I used ax.plot() from my application. I compared this with the pl

Re: [Matplotlib-users] Change the text of yticklabels

2009-08-02 Thread Eric Firing
Jae-Joon Lee wrote: > Use pylab's yticks command. > > http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.yticks > > Or Axes.set_yticklabels together with Axes.set_yticks. > > http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.set_yticklabels > > -JJ O

Re: [Matplotlib-users] spines versus subplotzero

2009-08-02 Thread Jae-Joon Lee
Yes, using spines will be best in most situation. The problem with using axes_grid toolkit is that some mpl commands that changes the properties of the ticks and ticklabels do not work. I think you may consider to use axes_grid if you want to keep both of the bottom and top axis, which I guess wo

Re: [Matplotlib-users] clabel and bbox

2009-08-02 Thread Jae-Joon Lee
On Sat, Aug 1, 2009 at 5:04 PM, Andres Luhamaa wrote: > Thank You, > > but now I have another little annoying issue. Besides clabel I add some > text manually to my plot with plt.text and sometimes the clabel and > plt.text overlap, and no matter in which order I plot them, the string > from clabel

Re: [Matplotlib-users] Include icon in plot

2009-08-02 Thread John Hunter
On Sun, Aug 2, 2009 at 1:28 PM, Jae-Joon Lee wrote: > A snippet of code does not help in general. > Please take your time to create a simple, standalone code that > reproduces your problem and post that code in this mailing list so > that we can easily test. > > Here is the code, based on yours, th

Re: [Matplotlib-users] Change the text of yticklabels

2009-08-02 Thread Jae-Joon Lee
Use pylab's yticks command. http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.yticks Or Axes.set_yticklabels together with Axes.set_yticks. http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.set_yticklabels -JJ On Fri, Jul 31, 2009 at 4:07 PM, Lukas

Re: [Matplotlib-users] Include icon in plot

2009-08-02 Thread Jae-Joon Lee
A snippet of code does not help in general. Please take your time to create a simple, standalone code that reproduces your problem and post that code in this mailing list so that we can easily test. Here is the code, based on yours, that works for me. im = Image.open("icon.jpg") ax = gca

[Matplotlib-users] date representation : ValueError: invalid literal for float()

2009-08-02 Thread jorge sanchez
Hi, I am trying to plot netstat (network stats taken from /proc/net/netstat on linux), the parsed file looks like this: Tue Jul 28 17:11:39 2009 TcpExt: TcpExt: SyncookiesSent 35367 SyncookiesRecv 83175 SyncookiesFailed 626981 EmbryonicRsts 2683828 PruneCalled

Re: [Matplotlib-users] show figures in a loop

2009-08-02 Thread Janwillem
Thanks for the hint, I now have: #figure is a matplotlib Figure #bitmap is a wx.StaticBitmap w_figure, h_figure = figure.get_size_inches() w_bitmap, h_bitmap = bitmap.GetSize() dpi = int(min(w_bitmap/w_figure,h_bitmap/h_figure)) figure.set_dpi(dpi)

Re: [Matplotlib-users] subplot [was: executing function when view interval changes]

2009-08-02 Thread Alan G Isaac
> On Sat, Aug 1, 2009 at 7:32 PM, Alan > G Isaac wrote: >> Which reminds me, was there a decision on subplot2grid etc? >> http://sourceforge.net/mailarchive/message.php?msg_name=6e8d907b0905172009j21b5077fp242c7598ee9fb2c9%40mail.gmail.com> >> On 8/2/2009 1:00 AM John Hunter wrote: > There >

Re: [Matplotlib-users] Backend neutral idle event won't repeat

2009-08-02 Thread John Hunter
On Sun, Aug 2, 2009 at 9:39 AM, Mark Rubelmann wrote: > Thanks for the reply John.  Not quite the answer I was looking for > though ;)  I tried your suggestion of returning True but it didn't solve > the problem.  Oh well, not the end of the world.  Being a die-hard KDE user, > I started trying

Re: [Matplotlib-users] Backend neutral idle event won't repeat

2009-08-02 Thread John Hunter
On Sun, Aug 2, 2009 at 10:35 AM, John Hunter wrote: > On Sun, Aug 2, 2009 at 9:39 AM, Mark Rubelmann wrote: >> Thanks for the reply John.  Not quite the answer I was looking for >> though ;)  I tried your suggestion of returning True but it didn't solve >> the problem.  Oh well, not the end of

Re: [Matplotlib-users] Backend neutral idle event won't repeat

2009-08-02 Thread Mark Rubelmann
Thanks for the reply John. Not quite the answer I was looking for though ;) I tried your suggestion of returning True but it didn't solve the problem. Oh well, not the end of the world. Being a die-hard KDE user, I started trying to get things working with Qt. I got my animation working bu

Re: [Matplotlib-users] show figures in a loop

2009-08-02 Thread John Hunter
On Sun, Aug 2, 2009 at 8:14 AM, Janwillem wrote: > > The problem: > I have files with time versus signal data of a large series of measurements. > The python application (using wxPython actually) scans the file, applies > some math (numpy/scipy) on each record of data and than must show the signal

Re: [Matplotlib-users] Backend neutral idle event won't repeat

2009-08-02 Thread John Hunter
On Sun, Aug 2, 2009 at 8:08 AM, John Hunter wrote: > Wriing a GUI neutal idle event handler is not easy -- I've spent some > time on it but crashed and burned on tk -- but my guess is that the > problem you are having in your code is that GTK expects you to return > True is you want the func to be

Re: [Matplotlib-users] show figures in a loop

2009-08-02 Thread Janwillem
The problem: I have files with time versus signal data of a large series of measurements. The python application (using wxPython actually) scans the file, applies some math (numpy/scipy) on each record of data and than must show the signal as a plot. After clicking OK the next record of measuremen

[Matplotlib-users] Set tight axis for log? / axis('tight') doesn't work

2009-08-02 Thread plaf
Dear all, I need some help :) I have been trying to plot several subplots, with the y axis being in linear and the x axis in log. I need both axis to be tight to the data. Here's what I have: import wx import scipy.io.matlab as matlab import numpy import matplotlib matplotlib.use('WXAgg') from

Re: [Matplotlib-users] Backend neutral idle event won't repeat

2009-08-02 Thread John Hunter
On Sat, Aug 1, 2009 at 12:05 PM, Mark Rubelmann wrote: > Hi, > > I'm writing a script to plot data being read from a serial connection in > real time.  I'm trying to use an idle_event callback to continually read the > incoming data and plot it.  The problem is that the callback is only getting > i

Re: [Matplotlib-users] spines versus subplotzero

2009-08-02 Thread John Hunter
On Sun, Aug 2, 2009 at 2:14 AM, wrote: > I'm trying to understand some of the changes in 0.99, for example, the > recommended way of getting a plot so that the axes cross at the origin > (i.e., the axes are in the middle of the plot).  I see two examples that > seem to give this: > > http://matplo

Re: [Matplotlib-users] show figures in a loop

2009-08-02 Thread Sandro Tosi
Hello Janwillem, On Sun, Aug 2, 2009 at 14:11, Janwillem wrote: > > I have an application where I would like to use show in a loop but as stated > in 18.1 of the manual that does not work. > # WARNING : illustrating how NOT to use show > for i in range(10): >    # make figure i >    show() call s

[Matplotlib-users] show figures in a loop

2009-08-02 Thread Janwillem
I have an application where I would like to use show in a loop but as stated in 18.1 of the manual that does not work. # WARNING : illustrating how NOT to use show for i in range(10): # make figure i show() So I made a workaround in a custom wxDialog with a wxStaticBitmap and a few buttons

[Matplotlib-users] spines versus subplotzero

2009-08-02 Thread jason-sage
I'm trying to understand some of the changes in 0.99, for example, the recommended way of getting a plot so that the axes cross at the origin (i.e., the axes are in the middle of the plot). I see two examples that seem to give this: http://matplotlib.sourceforge.net/examples/pylab_examples/spi