Re: [Matplotlib-users] Matplotlib on OS X 10.4

2009-04-23 Thread Jouni K . Seppänen
John Seales writes: > I've been using python 2.6 for several months. I can't remember how I > installed it. > Matplotlib is from sourceforge. Filename: matplotlib-0.98.5.2-py2.5-mpkg.zip. That package only works with Python 2.5 (hence "py2.5" in the file name). If you somehow managed to instal

[Matplotlib-users] Segmentation fault using imshow on large image

2009-04-23 Thread Adam Ginsburg
Hi, I've been getting a segmentation fault when trying to display large images. A transcript of a sample session is below. I'm using the TkAgg backend, and I am using numpy, but otherwise I have made no modifications to the matplotlib setup. milkyway /data/glimpseii $ alias pylab alias pylab='/

Re: [Matplotlib-users] Matplotlib on OS X 10.4 (was: can't import pylab)

2009-04-23 Thread John Seales
I've been using python 2.6 for several months. I can't remember how I installed it. Matplotlib is from sourceforge. Filename: matplotlib-0.98.5.2-py2.5-mpkg.zip. > To: matplotlib-users@lists.sourceforge.net > From: j...@iki.fi > Date: Tue, 21 Apr 2009 10:10:10 +0300 > Subject: [Matplotlib-use

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-23 Thread Ryan May
On Thu, Apr 23, 2009 at 4:16 PM, Esmail wrote: > Ryan May wrote: > > > > Try this: > > > > > http://matplotlib.sourceforge.net/examples/animation/simple_anim_gtk.html > > > > (If not gtk, there are other examples there.) > > Thanks Ryan, that'll give me some idea with regard to the animation, > a

[Matplotlib-users] setting hist(log=True) causes recursion depth to be exceeded

2009-04-23 Thread AugustineDunn
Hello, I am sorry if this gets double posted but it has spent more than a day in mailing-list limbo! I have been trying to plot a hist of a large data array (len ~ 15,000) and the log=True switch causes the following error to be thrown: RuntimeError: Maximum recursion depth exceeded File "/Libr

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-23 Thread Esmail
Ryan May wrote: > > Try this: > > http://matplotlib.sourceforge.net/examples/animation/simple_anim_gtk.html > > (If not gtk, there are other examples there.) Thanks Ryan, that'll give me some idea with regard to the animation, and real-time drawings. Any idea if it's possible to finish a Pytho

Re: [Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-23 Thread Ryan May
On Thu, Apr 23, 2009 at 1:04 PM, Esmail wrote: > Hi, > > I have two quick questions: > > 1. Is it possible to exit a Python program but still have the graph > window generated by pylot remain visible? Right now the program stops > when I display the (only) final graph. When I close this window, t

[Matplotlib-users] How to maximaze a Tkinter window

2009-04-23 Thread Coert Klaver
Hi, I would like to maximize a window that is generated by pyplot. Example code: import numpy as np import matplotlib.pyplot as plt t = np.arange(0., 5., 0.2) line, = plt.plot(t, t**2, 'bo') plt.show() I found code on how to do this in Tkinter mailing: def maximize_toplevel( widget ): t

Re: [Matplotlib-users] Animation with copy_from_bbox / restore_region.

2009-04-23 Thread Elan Pavlov
Hi Jae-Joon, Thanks a ton! The problem is actually not the frequency of changes. The current method uses draw_artist on each update. However, the time for draw_artist is linear in the *number* of points so for graphs with a large amount of data it is extremely inefficient. Your patch means that upd

Re: [Matplotlib-users] savefig bug

2009-04-23 Thread Thomas Robitaille
It works great now - thanks for fixing this! Thomas On Apr 23, 2009, at 10:29 AM, Michael Droettboom wrote: > I think Jae-Joon's assesment is correct, since the logical dpi in PS > is hardcoded to 72.0. I have made this change in the SVN repository. > > Mike > > Thomas Robitaille wrote: >> Th

[Matplotlib-users] 2 simple ??: program exit w/graph, update graph real-time

2009-04-23 Thread Esmail
Hi, I have two quick questions: 1. Is it possible to exit a Python program but still have the graph window generated by pylot remain visible? Right now the program stops when I display the (only) final graph. When I close this window, the program exits. I would like to finish the program, but hav

Re: [Matplotlib-users] pylab quick reference? (

2009-04-23 Thread Gökhan SEVER
Works here. Don't know it's a browser issue or something related to your connection. Best to wait a reply from John Hunter. He might have it uploaded somewhere else. And yes developers knows a lot about their product then users. Wish there were more handy instructional videos -showing step-by-st

Re: [Matplotlib-users] pylab quick reference? (

2009-04-23 Thread Esmail
Jim Vickroy wrote: > > I have tried twice to watch this video and each time, after a lengthy > delay, a "server not found ..." message appears after I click on the > "play button". This happens in both Firefox 3 and IE7 on my MS Windows > XP Pro machine. Works here with XP Prof SP2 and Firefox

Re: [Matplotlib-users] pylab quick reference? (

2009-04-23 Thread Jim Vickroy
Esmail wrote: Selam to you too Gökhan, Gökhan SEVER wrote: What I recommend you is: watching John Hunter's video at Matplotlib by John D. Hunter . His introduction of matplotlib and examples he use could be very interesting to watch for you.

Re: [Matplotlib-users] 3rd y-axis in plot

2009-04-23 Thread Jae-Joon Lee
On Thu, Apr 23, 2009 at 3:54 AM, philscher wrote: > > Hello, > > I need to plot 3 functions into the same plot, each having different scales > (same x, different y values). > For the first 2 functions I can use twinx(). But how can I include a 3rd > axis, which should appear > beside the first y-a

Re: [Matplotlib-users] Animation with copy_from_bbox / restore_region.

2009-04-23 Thread Jae-Joon Lee
On Mon, Apr 20, 2009 at 4:34 PM, Elan Pavlov wrote: > Hi, > > I'm trying to use matplotlib for animating data as it is received from an > online source (online in the algorithmic sense not internet:). I'd like > the graph plot to be updated with high frequency since the data changes > rapidly. I'v

Re: [Matplotlib-users] pylab quick reference? (

2009-04-23 Thread Esmail
> There is no quick reference, though one would be handy. If you scroll > down to the bottom of the main page at > > http://matplotlib.sourceforge.net/index.html > > there is a summary of the pyplot plotting commands with links to the > full docs. You can at least see most everything that is

Re: [Matplotlib-users] pylab quick reference? (

2009-04-23 Thread Esmail
Selam to you too Gökhan, Gökhan SEVER wrote: > > What I recommend you is: watching John Hunter's video at Matplotlib by > John D. Hunter . His > introduction of matplotlib and examples he use could be very interesting > to watch for you. I just st

Re: [Matplotlib-users] SpanSelector on multiple figures

2009-04-23 Thread Jae-Joon Lee
On Mon, Apr 20, 2009 at 4:09 PM, fjldurodie wrote: > Hi, > > I'm wondering if it is possible to use SpanSelector on multiple figures > : my problem is that I can't think of a way to tell the onselect on > which axes(ses) of which figure it should try and do something. The > example works because t

Re: [Matplotlib-users] set fixed xrange

2009-04-23 Thread Ryan May
On Thu, Apr 23, 2009 at 8:40 AM, Till Backhaus wrote: > Hi there, > > I'm using matplotlib (version 0.98.5.2) to generate a couple of bar- > charts for a website. > Until now I've not been able to find a way set the x axis to a fixed > range. > > Suppose my data is turnover per hour. Now: If ther

Re: [Matplotlib-users] savefig bug

2009-04-23 Thread Michael Droettboom
I think Jae-Joon's assesment is correct, since the logical dpi in PS is hardcoded to 72.0. I have made this change in the SVN repository. Mike Thomas Robitaille wrote: > Thanks for your quick reply! > > I'll be patient and wait for the fix to be made in the SVN repository, > rather than tryin

Re: [Matplotlib-users] Hardcoded DPI settings in PDF and Cairo backends

2009-04-23 Thread Jouni K . Seppänen
David Kiliani writes: > http://matplotlib.svn.sourceforge.net/viewvc/matplotlib?view=rev&revision=4933 > which does not make any sense to me. Why was the kwargs readout > disabled, even if the default setting was already 72dpi? Before that change, the dpi setting changed the size of the pages pr

Re: [Matplotlib-users] Matplotlib running under cron

2009-04-23 Thread Jouni K . Seppänen
john.ba...@worstead.co.uk writes: > I recently changed some of the colours, using tuples of RGB values instead > of the standard colors and now the scripts will run from the command line, > but not as scheduled cron jobs and I get the following error: > > Unable to access the X Display, is $DISPLA

[Matplotlib-users] set fixed xrange

2009-04-23 Thread Till Backhaus
Hi there, I'm using matplotlib (version 0.98.5.2) to generate a couple of bar- charts for a website. Until now I've not been able to find a way set the x axis to a fixed range. Suppose my data is turnover per hour. Now: If there is zero turnover at the beginning or the end of a period matplo

Re: [Matplotlib-users] prevent clipping?

2009-04-23 Thread Michael Droettboom
You can call "set_clip_box(None)" on all of the artists you draw. (The circles and other patches etc.) Cheers, Mike Carlos Guâno Grohmann wrote: > Dears, > > In this app I'm working on, I have a circular plot (not a polar plot, > just a plot inside a circular area) in a panel, within a > wx.spl

Re: [Matplotlib-users] does matplotlib install work???

2009-04-23 Thread Michael Droettboom
Can you provide more information, such as any messages emitted when you import pylab? John Seales wrote: > > > > From: praxbaf...@hotmail.com > To: matplotlib-users@lists.sourceforge.net > Date: Tue, 21 Apr 2009 16:14:37 -07

Re: [Matplotlib-users] Matplotlib running under cron

2009-04-23 Thread Michael Droettboom
This is usually caused by having an interactive backend (such as Gtk, Qt, Tk) which would require X11. Try setting your backend to "Agg". import matplotlib matplotlib.use("Agg") Cheers, Mike john.ba...@worstead.co.uk wrote: > I have been successfully producing graphics as pngs with matplot

[Matplotlib-users] Matplotlib running under cron

2009-04-23 Thread john . bacon
I have been successfully producing graphics as pngs with matplotlib and running them as cron jobs with Linux for some time. These graphics used "standard" colors. I recently changed some of the colours, using tuples of RGB values instead of the standard colors and now the scripts will run from the

[Matplotlib-users] Matplotlib running under cron

2009-04-23 Thread olslewfoot
I have been successfully producing graphics as pngs with matplotlib and running them as cron jobs with Linux for some time. These graphics used "standard" colors. I recently changed some of the colours, using tuples of RGB values instead of the standard colors and now the scripts will run from th

[Matplotlib-users] SpanSelector on multiple figures

2009-04-23 Thread fjldurodie
Hi, I'm wondering if it is possible to use SpanSelector on multiple figures : my problem is that I can't think of a way to tell the onselect on which axes(ses) of which figure it should try and do something. The example works because there is only one SpanSelector active and "it" therefore kno

[Matplotlib-users] Animation with copy_from_bbox / restore_region.

2009-04-23 Thread Elan Pavlov
Hi, I'm trying to use matplotlib for animating data as it is received from an online source (online in the algorithmic sense not internet:). I'd like the graph plot to be updated with high frequency since the data changes rapidly. I've used the BufferRegion with copy_from_bbox / restore_region

[Matplotlib-users] Hardcoded DPI settings in PDF and Cairo backends

2009-04-23 Thread David Kiliani
Hi, I'm currently doing my diploma thesis with matplotlib plots and I have a problem there. Many of the plots include an imshow(), which is completly blurred when I do a savefig() to PDF. The problem seems to be the hardcoded DPI settings in the PDF and Cairo backends (dpi=72), which is far too lo

[Matplotlib-users] SpanSelector on multiple figures

2009-04-23 Thread justfred
Hi, I'm wondering if it is possible to use SpanSelector on multiple figures : my problem is that I can't think of a way to tell the onselect on which axes(ses) of which figure it should try and do something. The example works because there is only one SpanSelector active and "it" therefore knows

[Matplotlib-users] 3rd y-axis in plot

2009-04-23 Thread philscher
Hello, I need to plot 3 functions into the same plot, each having different scales (same x, different y values). For the first 2 functions I can use twinx(). But how can I include a 3rd axis, which should appear beside the first y-axis and plot the 3rd function ? Thanks for matplotlib & help P