Re: [Matplotlib-users] Is it possible to plot axes with arrows ?

2011-02-03 Thread Jason Grout
On 2/2/11 8:51 AM, Francois Maltey wrote: > Hello, > > I use matplolib by the mathematical system Sage in order to plot a function. > The Sage code calls matplotlib and uses its options : The Sage command is > > plot (sin, x, -5, 5) > > I add labels par axes_labels or remove axes by : > > plot (sin

Re: [Matplotlib-users] Trouble with imshow

2011-02-03 Thread Christoph Gohlke
On 2/3/2011 6:50 PM, Eric Firing wrote: On 02/03/2011 03:04 PM, Benjamin Root wrote: Also, not to sound too annoying, but has anyone considered the idea of using compressed arrays for holding those rgba values? I don't see how that really helps; as far as I know, a full rgba array has to be

Re: [Matplotlib-users] Trouble with imshow

2011-02-03 Thread Eric Firing
On 02/03/2011 03:04 PM, Benjamin Root wrote: > Also, not to sound too annoying, but has anyone considered the idea of > using compressed arrays for holding those rgba values? I don't see how that really helps; as far as I know, a full rgba array has to be passed into agg. What *does* help is us

Re: [Matplotlib-users] Is it possible to plot axes with arrows ?

2011-02-03 Thread Paul Ivanov
From: Paul Ivanov To: Francois Maltey Cc: cc: Subject: Re: [Matplotlib-users] Is it possible to plot axes with arrows ? Reply-To: In-Reply-To: <4d496f84.7070...@nerim.fr> X-PGP-Key: http://pirsquared.org/PaulIvanov0F3E28F7.asc Francois Maltey, on 2011-02-02 15:51, wrote: > Hello, > > I use

Re: [Matplotlib-users] Trouble with imshow

2011-02-03 Thread Benjamin Root
On Thu, Feb 3, 2011 at 6:37 PM, Christoph Gohlke wrote: > > > On 2/3/2011 3:13 PM, Eric Firing wrote: > > On 02/03/2011 01:02 PM, Christoph Gohlke wrote: > >> > >> > >> On 2/3/2011 2:44 PM, Eric Firing wrote: > >>> On 02/03/2011 12:28 PM, Christoph Gohlke wrote: > > > On 2/3/2011 2

Re: [Matplotlib-users] Trouble with imshow

2011-02-03 Thread Christoph Gohlke
On 2/3/2011 3:13 PM, Eric Firing wrote: > On 02/03/2011 01:02 PM, Christoph Gohlke wrote: >> >> >> On 2/3/2011 2:44 PM, Eric Firing wrote: >>> On 02/03/2011 12:28 PM, Christoph Gohlke wrote: On 2/3/2011 2:15 PM, Eric Firing wrote: > On 02/03/2011 11:30 AM, Robert Abiad wrote: >

Re: [Matplotlib-users] Trouble with imshow

2011-02-03 Thread Eric Firing
On 02/03/2011 01:02 PM, Christoph Gohlke wrote: > > > On 2/3/2011 2:44 PM, Eric Firing wrote: >> On 02/03/2011 12:28 PM, Christoph Gohlke wrote: >>> >>> >>> On 2/3/2011 2:15 PM, Eric Firing wrote: On 02/03/2011 11:30 AM, Robert Abiad wrote: > On 2/3/2011 10:06 AM, Eric Firing wrote: >>

Re: [Matplotlib-users] Trouble with imshow

2011-02-03 Thread Christoph Gohlke
On 2/3/2011 2:44 PM, Eric Firing wrote: > On 02/03/2011 12:28 PM, Christoph Gohlke wrote: >> >> >> On 2/3/2011 2:15 PM, Eric Firing wrote: >>> On 02/03/2011 11:30 AM, Robert Abiad wrote: On 2/3/2011 10:06 AM, Eric Firing wrote: > On 02/02/2011 10:17 PM, Eric Firing wrote: >> On 02/02

Re: [Matplotlib-users] Trouble with imshow

2011-02-03 Thread Eric Firing
On 02/03/2011 12:28 PM, Christoph Gohlke wrote: > > > On 2/3/2011 2:15 PM, Eric Firing wrote: >> On 02/03/2011 11:30 AM, Robert Abiad wrote: >>> On 2/3/2011 10:06 AM, Eric Firing wrote: On 02/02/2011 10:17 PM, Eric Firing wrote: > On 02/02/2011 08:38 PM, Robert Abiad wrote: >> > [.

Re: [Matplotlib-users] Trouble with imshow

2011-02-03 Thread Christoph Gohlke
On 2/3/2011 2:15 PM, Eric Firing wrote: > On 02/03/2011 11:30 AM, Robert Abiad wrote: >> On 2/3/2011 10:06 AM, Eric Firing wrote: >>> On 02/02/2011 10:17 PM, Eric Firing wrote: On 02/02/2011 08:38 PM, Robert Abiad wrote: > [...] > I'll put it in as an enhancement, but I'm still

Re: [Matplotlib-users] Trouble with imshow

2011-02-03 Thread Eric Firing
On 02/03/2011 11:30 AM, Robert Abiad wrote: On 2/3/2011 10:06 AM, Eric Firing wrote: On 02/02/2011 10:17 PM, Eric Firing wrote: On 02/02/2011 08:38 PM, Robert Abiad wrote: [...] I'll put it in as an enhancement, but I'm still unsure if there is a bug in there as well. Is there something I s

Re: [Matplotlib-users] Trouble with imshow

2011-02-03 Thread Robert Abiad
On 2/3/2011 10:06 AM, Eric Firing wrote: > On 02/02/2011 10:17 PM, Eric Firing wrote: >> On 02/02/2011 08:38 PM, Robert Abiad wrote: >>> >> [...] >>> I'll put it in as an enhancement, but I'm still unsure if there is a >>> bug in >>> there as well. Is there something I should be doing to clear memo

Re: [Matplotlib-users] Trouble with imshow

2011-02-03 Thread Eric Firing
On 02/02/2011 10:17 PM, Eric Firing wrote: > On 02/02/2011 08:38 PM, Robert Abiad wrote: >> > [...] >> I'll put it in as an enhancement, but I'm still unsure if there is a >> bug in >> there as well. Is there something I should be doing to clear memory >> after the >> first figure is closed other t

[Matplotlib-users] Line2D: drawstyle + pick_event

2011-02-03 Thread Jim Kitchen
'pick_event' fires when I pick on either the marker or the line segment of a Line2D object. But if I change the drawstyle to use steps (steps-pre, steps-post, steps-mid), picking on the line segment is broken. It still seems to think the line is linear. This leads to very strange behavior where

[Matplotlib-users] latex ' (prime)

2011-02-03 Thread Jason Grout
Observe the following image: import pylab pylab.plot([0,1],[1,2],label="$\sigma'_0$") pylab.legend() pylab.savefig('test.png') Notice that the \prime introduced by the single quote in the legend is not raised above the \sigma, like it would be in TeX (i.e., in TeX, $\sigma'_0$ is equivalent to

[Matplotlib-users] Is it possible to plot axes with arrows ?

2011-02-03 Thread Francois Maltey
Hello, I use matplolib by the mathematical system Sage in order to plot a function. The Sage code calls matplotlib and uses its options : The Sage command is plot (sin, x, -5, 5) I add labels par axes_labels or remove axes by : plot (sin(x), x, -5, 5, axes_label = ['x', 'y']) plot (sin(x), x, -

[Matplotlib-users] Help with imshow() extent.

2011-02-03 Thread bhargav vaidya
Hello I am using matplotlib 1.0.0 version. and would like to use the imshow() to display my 2D image [512 X 1024] so when I use the imshow() command as imshow(array,origin='lower',interpolation='bilinear') xlables - [0,100,200,400,500] ylabels - [0,200,400,600,800,1000] which is correct as b

[Matplotlib-users] description: unknown (?!?!?)

2011-02-03 Thread Gf B
In many places in the mpl docs there are tables of supported "kwarg properties" containing at least one (usually many) entries where the description given for the property is simply "unknown". What's up with that??? How can the description of a property be unknown??? Any clarification for what t

Re: [Matplotlib-users] 3D Data to 2d Plots

2011-02-03 Thread Philipp A.
2011/2/3 Mike Alger > Sorry I was out of touch for a while I have been busy with other things, > > > > You would have to do some sort of a bin solution with the method I > suggested. So m/z values would not have to be exact but you would group > ranges of them together. > > > > To be honest base

Re: [Matplotlib-users] Trouble with imshow

2011-02-03 Thread Christoph Gohlke
As a workaround you could do your own normalization and color mapping and pass a uint8 RGB image to imshow. That avoids matplotlib's norm function. The following example saves almost 500 MB for plotting a 16 MB uint8 greyscale image, as compared to passing img directly to imshow: import numpy

Re: [Matplotlib-users] Trouble with imshow

2011-02-03 Thread Eric Firing
On 02/02/2011 08:38 PM, Robert Abiad wrote: [...] I'll put it in as an enhancement, but I'm still unsure if there is a bug in there as well. Is there something I should be doing to clear memory after the first figure is closed other than close()? I don't understand why memory usage grows eac