Re: [Matplotlib-users] can't import pylab

2009-04-23 Thread Jouni K . Seppänen
John Seales praxbaf...@hotmail.com writes: Anyone have any help to get pylab working? Should I reinstall? What method should I use? I guess you missed my previous reply asking for more details (I changed the subject so that people who know more about OS X might notice it):

[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

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

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

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

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

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 $DISPLAY

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

2009-04-23 Thread Jouni K . Seppänen
David Kiliani m...@davidkiliani.de writes: http://matplotlib.svn.sourceforge.net/viewvc/matplotlib?view=revrevision=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

Re: [Matplotlib-users] set fixed xrange

2009-04-23 Thread Ryan May
On Thu, Apr 23, 2009 at 8:40 AM, Till Backhaus t...@backha.us 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:

Re: [Matplotlib-users] SpanSelector on multiple figures

2009-04-23 Thread Jae-Joon Lee
On Mon, Apr 20, 2009 at 4:09 PM, fjldurodie frederic.duro...@googlemail.com 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.

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 http://videolectures.net/mloss08_hunter_mat/. His introduction of matplotlib and examples he use could be very interesting to watch for you. I just started

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] 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 e...@mit.edu 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

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 p.hilsc...@lsw.uni-heidelberg.de 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

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 http://videolectures.net/mloss08_hunter_mat/. His introduction of matplotlib and examples he use could be very interesting to watch for you.

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 3.0.9

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

[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

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: Thanks

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

[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 ):

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 ebo...@hotmail.com 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

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 Python

[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

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 ebo...@hotmail.com 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,

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-users]

[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

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

2009-04-23 Thread Jouni K . Seppänen
John Seales praxbaf...@hotmail.com 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