Re: [Matplotlib-users] heatmap with varying size boxes?

2009-08-19 Thread Scott Sinclair
2009/8/18 Pete Shepard peter.shep...@gmail.com: I have a list of X,Y coordinates and a ratio associated with each coordinate. The X and Y coordinates are continuous but random from 50-500, I would like to make a continuous heatmap of the ratios at each coordinate. One caveat is that the

[Matplotlib-users] mac os backend not building

2009-08-19 Thread George Nurser
Hi, I updated matplotlib to svn r 7506, but it won't build. I am having problems with the mac os backend: 10.5.8, gcc 4.0.1: python setup.py build install run from the matplotlib/matplotlib directory gives: . building 'matplotlib.backends._macosx' extension gcc -arch ppc -arch i386 -isysroot

Re: [Matplotlib-users] show() problem in Mac OS X 10.5.8

2009-08-19 Thread Ryan May
On Wed, Aug 19, 2009 at 11:55 AM, coati dwki...@gmail.com wrote: I have a problem with show() command in my macbook machine (Leopard 10.5.8). For example, if I run the script shown below (let assume it is saved as 'test.py', and I run a command 'python test.py'),

[Matplotlib-users] show() problem in Mac OS X 10.5.8

2009-08-19 Thread coati
I have a problem with show() command in my macbook machine (Leopard 10.5.8). For example, if I run the script shown below (let assume it is saved as 'test.py', and I run a command 'python test.py'), --- plot([1,2,3,4,5]) show() #first window

Re: [Matplotlib-users] show() problem in Mac OS X 10.5.8

2009-08-19 Thread Kim, Dae-Won
On Wed, Aug 19, 2009 at 1:02 PM, Ryan May rma...@gmail.com wrote: On Wed, Aug 19, 2009 at 11:55 AM, coati dwki...@gmail.com wrote: I have a problem with show() command in my macbook machine (Leopard 10.5.8). For example, if I run the script shown below (let assume it is saved as

[Matplotlib-users] AttributeError: draw_gouraud_triangle

2009-08-19 Thread Chuck Pepe-Ranney
I am using the svn matplotlib (1.0.svn) and when I try to plot a histogram I get an AttributeError for draw_gouraud_triangle (traceback below). I have not had this problem in the past. Is anyone else experiencing this? Thanks, - Chuck In [3]: x = mu + sigma*randn(10) In [4]: hist(x, 50,

[Matplotlib-users] Plot updating from file

2009-08-19 Thread Anth-Espin
Hey guys, I'm very new to python and matplotlib (in fact all programing) and I've been trying to figure out a way to plot a series of data that's saved to a file. I'd like for there to be some delay when the plot refreshes too, so maybe like 1-2 seconds. The file looks something like this

[Matplotlib-users] Python 2.6

2009-08-19 Thread William Miner
When will a version of Matplotlib be available that¹s compatible with Python 2.6? Thanks! Buff Miner -- Enig Associates, Inc. Suite 500, Bethesda Crescent Bldg. 4600 East West Hwy Bethesda, Maryland 20814 Tel:(301)680-8600 Fax:(301)680-8100 This message is intended only for the use of the

[Matplotlib-users] onpick on a 2 y plot ( via twinx() ) seems to only allow picking of second axes's artists

2009-08-19 Thread Erik Schweller
Good day, I've hit an issue that may be a bug. In a previous version of matplotlib (.98.x) I had a picker set for lines plotted on two axes. This was working until I upgraded to version 0.99.0. Now the first axes's pick events never seem to fire even though they respond true if queried with

[Matplotlib-users] onpick on a 2 y plot ( via twinx() ) seems to only allow picking of second axes's artists

2009-08-19 Thread othererik
Good day, I've hit an issue that may be a bug. In a previous version of matplotlib (.98.x) I had a picker set for lines plotted on two axes. This was working until I upgraded to version 0.99.0. Now the first axes's pick events never seem to fire even though they respond true if queried with

[Matplotlib-users] Plotting on an open box with matplotlib?

2009-08-19 Thread Eric Ayars
Hello, I've been using Gnuplot for years, but am quite impressed with what I see in matplotlib and am in the process of learning enough to switch. One item that I haven't been able to figure out yet is how to plot on an open box. For example, in Gnuplot I would give the commands

Re: [Matplotlib-users] griddata array size limit?

2009-08-19 Thread othererik
tfoutz99, I occasionally run into this issue as well. At quick glance I suspect it may be related to the limitation listed at: http://www.scipy.org/scipy/scikits/ticket/61 ...but I could be way off base as I'm not sure if the code is derived from the same place. -Erik tfoutz99 wrote: Hi!

[Matplotlib-users] plot3d ticker setting

2009-08-19 Thread scripper
Hi everybody, i am a newbie on Matplotlib and wanna know whether there is already tick setting on x,y,z axes in 3D plot. By now i just know on 2-dimension which listed on the gallery. Thanks very much! -- View this message in context:

[Matplotlib-users] plot multiple times in one script fails

2009-08-19 Thread M. Hecht
Hello, I'm totally new to matplotlib, so sorry if the question is stupid. I'm trying this slightly modified example from the examples page from pylab import * A = rand(5,5) figure(1) imshow(A, interpolation='bicubic') show() close(1) A = rand(5,5) figure(2) imshow(A, interpolation='bicubic')

Re: [Matplotlib-users] AttributeError: draw_gouraud_triangle

2009-08-19 Thread Michael Droettboom
Have you tried removing the build directory to force a full rebuild? draw_gouraud_triangle was recently added to the _backend_agg extension, so I would guess for some reason it is still loading an old version of that extension. If forcing the full rebuild doesn't help, can you send the

[Matplotlib-users] bug in imshow for PDF, EPS output

2009-08-19 Thread Michael Fitzgerald
Hi all, I've come across an apparent bug in imshow when outputting to PDF and EPS files. (I haven't tested other vector formats.) It manifests as a small scaling error between the raster image and the axes coordinates. I have attached a test script to illustrate the problem. The (correct) PNG

Re: [Matplotlib-users] AttributeError: draw_gouraud_triangle

2009-08-19 Thread Chuck Pepe-Ranney
Michael, Thanks, I rebuilt and now hist is working again. - Chuck On Wed, Aug 19, 2009 at 12:08 PM, Michael Droettboom md...@stsci.eduwrote: Have you tried removing the build directory to force a full rebuild? draw_gouraud_triangle was recently added to the _backend_agg extension, so I would

Re: [Matplotlib-users] Python 2.6

2009-08-19 Thread Darren Dale
On Thu, Aug 13, 2009 at 1:21 PM, William Minerwilliam.mi...@enig.com wrote: When will a version of Matplotlib be available that’s compatible with Python 2.6? matplotlib-0.99 is compatible with python 2.6 -- Let Crystal

Re: [Matplotlib-users] plot multiple times in one script fails

2009-08-19 Thread Ryan May
On Tue, Aug 18, 2009 at 3:55 AM, M. Hecht mhecht2...@instant-mail.dewrote: Hello, I'm totally new to matplotlib, so sorry if the question is stupid. I'm trying this slightly modified example from the examples page from pylab import * A = rand(5,5) figure(1) imshow(A,

Re: [Matplotlib-users] show() problem in Mac OS X 10.5.8

2009-08-19 Thread Kim, Dae-Won
The one 'preliminary' solution I found is using an interactive mode + raw_input. Here is and example, ion() plot([1,2,3,4,5]) raw_input('Type Enter') clf() plot([1,2,3,4,5]) raw_input('Type_Enter') clf() plot([1,2,3,4,5])

Re: [Matplotlib-users] onpick on a 2 y plot ( via twinx() ) seems to only allow picking of second axes's artists

2009-08-19 Thread John Hunter
On Thu, Aug 13, 2009 at 12:51 PM, Erik Schwellerothere...@gmail.com wrote: Good day, I've hit an issue that may be a bug.  In a previous version of matplotlib (.98.x) I had a picker set for lines plotted on two axes. This was working until I upgraded to version 0.99.0.   Now the first axes's

Re: [Matplotlib-users] Plotting on an open box with matplotlib?

2009-08-19 Thread John Hunter
On Thu, Aug 13, 2009 at 12:59 PM, Eric Ayarsay...@mailaps.org wrote: Hello, I've been using Gnuplot for years, but am quite impressed with what I see in matplotlib and am in the process of learning enough to switch. One item that I haven't been able to figure out yet is how to plot on an

Re: [Matplotlib-users] plot multiple times in one script fails

2009-08-19 Thread John Hunter
On Tue, Aug 18, 2009 at 3:55 AM, M. Hechtmhecht2...@instant-mail.de wrote: The first figure is drawn without problems but after closing it (by clicking the cross in the upper right corner of the window) the second figure cannot be plot anymore. What I wanted to do was to visualize all

Re: [Matplotlib-users] animate histogram

2009-08-19 Thread Christophe Dupre
I just saw the email below from John, and I was wondering why using compound paths are goo-gobs faster than using rectangles(patches)? I've been using the candlestick function quite a bit lately. I guess using compound paths could make the candlestick function faster. I'll give it a try.

Re: [Matplotlib-users] animate histogram

2009-08-19 Thread John Hunter
On Wed, Aug 19, 2009 at 3:25 PM, Christophe Duprechristophe.du...@vhayu.com wrote: I just saw the email below from John, and I was wondering why using compound paths are goo-gobs faster than using rectangles(patches)? I've been using the candlestick function quite a bit lately. I guess using

Re: [Matplotlib-users] xticklabels possition on a bar chart

2009-08-19 Thread Werner F. Bruhin
Eric, Eric Firing wrote: Werner F. Bruhin wrote: Werner F. Bruhin wrote: ... Ideally I would like to have these labels printed at an angle. Put my glasses on and found the rotation property in the documentation, only issue left is centering the labels below the bars. Are you using the

Re: [Matplotlib-users] xticklabels possition on a bar chart

2009-08-19 Thread Werner F. Bruhin
Jae-Joon Lee wrote: You need to adjust the positions of the ticks. bar command (by default) creates boxes so that their left side corresponds the first argument. http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.bar so, in your case, something like below will work (0.4

Re: [Matplotlib-users] Plotting on an open box with matplotlib?

2009-08-19 Thread Eric Ayars
Thank you! This is just what I was looking for. I found an undocumented feature, though: if you use spine.set_position(), the label on that spine goes away. -ea -- --- - --- --- - Dr. Eric Ayars Associate Professor of Physics California State University, Chico

Re: [Matplotlib-users] One more time: frame linewidth

2009-08-19 Thread Christopher Brown
Thank you, Jae-Joon. Again. :) On 8/18/2009 2:49 PM, Jae-Joon Lee wrote: I guess you're using 0.99? Use spines instead. for example, gca().spines[bottom].set_linewidth(2) # it only changes the linewidth of the bottom spine. also, see this example,

[Matplotlib-users] embeding basemap in Tk

2009-08-19 Thread marc desmarais
How do I embed basemap in Tk?  I tried following the matplotlib example. But the following does not work (the earth does not appear): import matplotlib matplotlib.use('TkAgg') from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg, NavigationToolbar2TkAgg from matplotlib.figure