Re: [Matplotlib-users] ginput(0) termination error

2010-06-07 Thread Thøger Emil Juul Thorsen
Bump - no one knows a solution/workaround to this? Hello list; I'm new to python/matplotlib, migrating from IDL. I need to do some interactive point selection with mouse, and the pyplot.ginput() routine seemed to be just the right thing here. I do however need to be able to make a not

Re: [Matplotlib-users] ginput(0) termination error

2010-06-07 Thread Marius 't Hart
Can't you do ginput(n=1) in a while loop? Ginput needs to end at some point, right? Initiating a never ending loop seems like the wrong solution for any real-life problem. On 06/07/2010 01:15 PM, Thøger Emil Juul Thorsen wrote: Bump - no one knows a solution/workaround to this? Hello

Re: [Matplotlib-users] ginput(0) termination error

2010-06-07 Thread Jae-Joon Lee
I think this is a known bug (unfortunately, the bug fix does not seem to be reflected in the maintenance version), but without a full traceback, I'm not 100% sure. You may use the svn version which have fixed this bug, or you may try the workaround described in the link below (check the

[Matplotlib-users] Help with imshow on Mac OS X 10.6 Snow Leopoard

2010-06-07 Thread Todd V Rovito
Greetings, I just installed Python 2.6 (python.org), Numpy 1.4.1, and Matplotlib 0.99.1.2 all on Mac OS X 10.6 in an attempt to learn about scientific programming in python. Go easy on me since I am a begginer. The Python and Numpy seem to be working correctly. I can get matplotlib to make

Re: [Matplotlib-users] Help with imshow on Mac OS X 10.6 Snow Leopoard

2010-06-07 Thread Benjamin Root
Todd, I think you are missing a plt.show() at the end of your code. matplotlib, by default on most systems, does not show a plot until you tell it to using plt.show() command. See if that works, Ben Root On Mon, Jun 7, 2010 at 7:57 AM, Todd V Rovito rovit...@gmail.com wrote: Greetings,

[Matplotlib-users] Animated Line2D

2010-06-07 Thread Nie, Jinsuo
I modified the path_editor.py example in order to make a line editor, as attached. However, the line is not animated even the line has been correctly updated. It seems canvas.blit is not functioning correctly in motion_notify_callback. Canvas.blit works in draw_callback because the initial

[Matplotlib-users] sizing shapes on a plot to match axis units, not graphic points

2010-06-07 Thread Ian Stokes-Rees
I'm generating a plot of NxN squares, where the size of the square corresponds to the correlation between the (i,j) point. Every (i,i) point equals 1.0. I'm using scatter to do this, but the sizing appears to be in points from the graphic, rather than units of the two axes. Is there some way to

Re: [Matplotlib-users] sizing shapes on a plot to match axis units, not graphic points

2010-06-07 Thread Michael Droettboom
Since this data is essentially a 2 dimensional image, you may want to experiment with imshow. Mike On 06/07/2010 11:16 AM, Ian Stokes-Rees wrote: I'm generating a plot of NxN squares, where the size of the square corresponds to the correlation between the (i,j) point. Every (i,i) point

Re: [Matplotlib-users] sizing shapes on a plot to match axis units, not graphic points

2010-06-07 Thread Tony S Yu
On Jun 7, 2010, at 11:16 AM, Ian Stokes-Rees wrote:I'm generating a plot of NxN squares, where the size of the squarecorresponds to the correlation between the (i,j) point. Every (i,i)point equals 1.0. I'm using "scatter" to do this, but the sizingappears to be in "points" from the graphic, rather

Re: [Matplotlib-users] Animated Line2D

2010-06-07 Thread John Hunter
On Mon, Jun 7, 2010 at 10:14 AM, Nie, Jinsuo j...@bnl.gov wrote: I modified the path_editor.py example in order to make a line editor, as attached.  However, the line is not animated even the line has been correctly updated.  It seems canvas.blit is not functioning correctly in

Re: [Matplotlib-users] Animated Line2D

2010-06-07 Thread Nie, Jinsuo
John, Thank you very much for a prompt reply. I am using Ipython with QT4 backend for the examples. I can have animated plot (dragable vertices) for the path_editor.py, but not for the line_editor.py. My python installation is pythonxy on windows 7. Could you please tell me your

[Matplotlib-users] Index Out of Range Error after Installation on RHEL5

2010-06-07 Thread Dharhas Pothina
Hi, I have Python 2.6 installed on RHEL5 (and Numpy 1.4.1) and am trying to install matplotlib. Installation occurs without any error messages although I do get a bunch of warnings at the end. /usr/bin/ld: skipping incompatible /usr/lib/libtk8.4.so when searching for -ltk8.4 /usr/bin/ld:

[Matplotlib-users] masked array problem

2010-06-07 Thread James Evans
I am having a problem when using masked arrays. The attached scripts are identical except for the data. One will actually produce a plot, whereas the other will not. I cannot figure out what I am doing wrong, such that the second script fails. Am I doing something wrong with this, or is this

Re: [Matplotlib-users] masked array problem

2010-06-07 Thread Eric Firing
On 06/07/2010 10:41 AM, James Evans wrote: I am having a problem when using masked arrays. The attached scripts are identical except for the data. One will actually produce a plot, whereas the other will not. I cannot figure out what I am doing wrong, such that the second script fails. Am I

Re: [Matplotlib-users] Index Out of Range Error after Installation on RHEL5

2010-06-07 Thread Benjamin Root
Dharhas, Is it possible to find out which version of python was installed for your other RHEL5 machine? I don't know if that makes a difference or not, but RHEL5 by default uses Python 2.4. Ben Root On Mon, Jun 7, 2010 at 1:48 PM, Dharhas Pothina dharhas.poth...@twdb.state.tx.us wrote: Hi,

Re: [Matplotlib-users] Index Out of Range Error after Installation on RHEL5

2010-06-07 Thread Dharhas Pothina
Ben, The matplotlib on the other working machine is using python 2.6.4. On this machine I am using python 2.6.5. The default python on both machines in python 2.4 but I set up python 2.6 as an alternate install in /opt/python26. - dharhas Benjamin Root ben.r...@ou.edu 6/7/2010 3:56 PM

[Matplotlib-users] easy_install in virtualenv -- error: command 'gcc' failed with exit status 1

2010-06-07 Thread Robert Sudwarts
Hi, Hoping someone can help with this... I'm trying to install in a virtual environment created with --no-site-packages I've followed all instructions re cleaning the existing .matplotlib cache/directory and deleted .egg files etc (virtualenv) ... $ easy_install matplotlib -- gives me an error:

Re: [Matplotlib-users] easy_install in virtualenv -- error: command 'gcc' failed with exit status 1

2010-06-07 Thread Eric Firing
On 06/07/2010 01:15 PM, Robert Sudwarts wrote: Hi, Hoping someone can help with this... I'm trying to install in a virtual environment created with --no-site-packages I've followed all instructions re cleaning the existing .matplotlib cache/directory and deleted .egg files etc (virtualenv)

Re: [Matplotlib-users] easy_install in virtualenv -- error: command 'gcc' failed with exit status 1

2010-06-07 Thread Robert Sudwarts
Thanks for your quick response Eric -- I've just spotted the freetype libpng packages which will also need to be installed... ... and having downloaded freetype etc (and seen its rather interesting installation instructions...) I'll have to figure out how to get this to end up in the right

[Matplotlib-users] better way to change spine and ticklabel colors?

2010-06-07 Thread Paul Ivanov
Hi all, I've really been enjoying matplotlib, but in getting my graphs to look just the way I want, I find myself having to just through some hoops to get there. my question is: is there a better way of changing spine, tick, and ticklabels colors? Here's what I use right now:

[Matplotlib-users] Custom data transformations with log ticks

2010-06-07 Thread Shareef Dabdoub
Hello All, I have data that I need to apply log-based transformations to followed by plotting. Ideally I would like the plot to display the nicely formatted log-scale major/minor ticks as when setting xscale('log'). Of course, doing that applies the default log transformation to already

Re: [Matplotlib-users] better way to change spine and ticklabel colors?

2010-06-07 Thread Benjamin Root
I would like to second this sentiment. I just encountered a situation today where I needed to modify the fontsize of the ticklabels and I could not find any obvious method for modifying the properties. Unless I am mistaken and there are methods for this, shall I file a feature request? Ben Root

Re: [Matplotlib-users] easy_install in virtualenv -- error: command 'gcc' failed with exit status 1

2010-06-07 Thread Eric Firing
On 06/07/2010 02:36 PM, Robert Sudwarts wrote: Thanks for your quick response Eric -- I've just spotted the freetype libpng packages which will also need to be installed... ... and having downloaded freetype etc (and seen its rather interesting installation instructions...) I'll have to

Re: [Matplotlib-users] better way to change spine and ticklabel colors?

2010-06-07 Thread Eric Firing
On 06/07/2010 04:31 PM, Benjamin Root wrote: I would like to second this sentiment. I just encountered a situation today where I needed to modify the fontsize of the ticklabels and I could not find any obvious method for modifying the properties. Unless I am mistaken and there are methods

Re: [Matplotlib-users] Help with imshow on Mac OS X 10.6 Snow Leopoard

2010-06-07 Thread Todd V Rovito
Ben, That worked great, thanks!!! Just a few points. The documentation under the image tutorial section does not specify that a user has to do plt.show(), should I submit a bug report or something? I changed my code and listed it below it works as long as I comment out the plot c section. In