[Matplotlib-users] typo

2009-08-19 Thread marc desmarais
"The longitude and latitude lines can be labelled where they the map projection boundary" at http://matplotlib.sourceforge.net/basemap/doc/html/users/graticule.html Marc Desmarais Long Beach, CA, 90814 --- On Wed, 8/19/09, marc desmarais wrote: From: marc desmarais Subject: embeding bas

[Matplotlib-users] naviguation toolbar, box/lasso selector and widget locking

2009-08-19 Thread Bernard GODARD
Hello, For an application, I am writing, I need the naviguation toolbar 2 and the BoxSelector and Lasso widgets. The user should be able to select with the Lasso or BoxSelector widget even when zoom or pan is active by pressing a modifier key. I have managed to do this with the following code (for

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

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, > > http://matplotlib.sourcefo

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 ay.

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 wor

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

Re: [Matplotlib-users] animate histogram

2009-08-19 Thread John Hunter
On Wed, Aug 19, 2009 at 3:25 PM, Christophe Dupre 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 > compound paths could

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. Rega

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. Hecht 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 selected files of a directory

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 Ayars 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 "open box". > >

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 Schweller 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 pick events n

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]) sho

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 wrote: > > 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()

Re: [Matplotlib-users] Python 2.6

2009-08-19 Thread Darren Dale
On Thu, Aug 13, 2009 at 1:21 PM, William Miner 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 Reports handle the r

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 wrote: > 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 so

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

[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') s

[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: http://www.nabble.com/plot3d-ticker-setting-tp25029488p250294

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

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

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

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

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

[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, nor

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 wrote: > On Wed, Aug 19, 2009 at 11:55 AM, coati 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

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 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 plot([1,2,3,4,5]

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