Re: [Matplotlib-users] Is there a 3D version of the quiver plot?

2013-03-07 Thread Nelle Varoquaux
On 8 March 2013 03:19, Brickle Macho wrote: > On 8/03/13 8:37 AM, Damon McDougall wrote: > > Correct me if I'm wrong, but would a 2D quiver plot on top of a > > contour plot work? What spaces does the surface map to/from? If your > > surface can be expressed as a function f:R^2 -> R then it's e

Re: [Matplotlib-users] Is there a 3D version of the quiver plot?

2013-03-07 Thread Brickle Macho
On 8/03/13 8:37 AM, Damon McDougall wrote: > Correct me if I'm wrong, but would a 2D quiver plot on top of a > contour plot work? What spaces does the surface map to/from? If your > surface can be expressed as a function f:R^2 -> R then it's equivalent > to look at its level sets, rather than the

Re: [Matplotlib-users] Is there a 3D version of the quiver plot?

2013-03-07 Thread Damon McDougall
On Thu, Mar 7, 2013 at 5:32 PM, Brickle Macho wrote: > Thanks. I had a quick read of the thread linked, if I was a > stronger/better programmer I would see if I could contribute. > > For now I plan calculate/plot the angle between the normal and each the > X,Y,Z planes. I hopefully the 3 subplo

Re: [Matplotlib-users] Is there a 3D version of the quiver plot?

2013-03-07 Thread Brickle Macho
Thanks. I had a quick read of the thread linked, if I was a stronger/better programmer I would see if I could contribute. For now I plan calculate/plot the angle between the normal and each the X,Y,Z planes. I hopefully the 3 subplots will visually convey sufficient information. Brickle.

Re: [Matplotlib-users] matching axes lengths after calls to "set_aspect" and "colorbar"

2013-03-07 Thread Jody Klymak
Hi Eric, On Mar 7, 2013, at 14:42 PM, Eric Firing wrote: > I think there is a simpler way. Does this do what you want? > > fig, axs = plt.subplots(nrows=2, sharex=True) > axs[0].set_aspect(0.7, adjustable='datalim') > axs[0].plot(np.random.rand(5)) > axs[1].plot(np.random.rand(7)) > plt.show(

Re: [Matplotlib-users] matching axes lengths after calls to "set_aspect" and "colorbar"

2013-03-07 Thread Eric Firing
On 2013/03/07 12:24 PM, Jody Klymak wrote: > Hi All, > > I want to have two axes have the same xlimits and the same length of the x > axis. However, I'd also like for the first axis to be plotted at a certain > aspect ratio (its geographic if anyone is interested). > > The following two tries do

[Matplotlib-users] matching axes lengths after calls to "set_aspect" and "colorbar"

2013-03-07 Thread Jody Klymak
Hi All, I want to have two axes have the same xlimits and the same length of the x axis. However, I'd also like for the first axis to be plotted at a certain aspect ratio (its geographic if anyone is interested). The following two tries do not work, because the "bounds" stay the same after

Re: [Matplotlib-users] Memory use of multiple plots on single axes

2013-03-07 Thread Eric Firing
On 2013/03/07 9:50 AM, Giovanni Plantageneto wrote: > Hi everybody, I am running out of memory while doing something like this: > > F= figure() > AX= F.add_subplot(111) > MyClass.plot(axes=AX) > F.show() > > MyClass.plot(axes=AX) then does something like this: > ... > for i in xrange(100): > s

Re: [Matplotlib-users] Is there a 3D version of the quiver plot?

2013-03-07 Thread Benjamin Root
On Thu, Mar 7, 2013 at 4:25 PM, Eric Firing wrote: > On 2013/03/07 9:19 AM, Benjamin Root wrote: > > > > > > On Thu, Mar 7, 2013 at 2:14 PM, Brickle Macho > > wrote: > > > > I have a list of surface normals I would like to plot. Is there a > way > > to plo

Re: [Matplotlib-users] Is there a 3D version of the quiver plot?

2013-03-07 Thread Eric Firing
On 2013/03/07 9:19 AM, Benjamin Root wrote: > > > On Thu, Mar 7, 2013 at 2:14 PM, Brickle Macho > wrote: > > I have a list of surface normals I would like to plot. Is there a way > to plot a 3D vectors in matplotlib similar to how quiver plots 2D > vecto

[Matplotlib-users] Memory use of multiple plots on single axes

2013-03-07 Thread Giovanni Plantageneto
Hi everybody, I am running out of memory while doing something like this: F= figure() AX= F.add_subplot(111) MyClass.plot(axes=AX) F.show() MyClass.plot(axes=AX) then does something like this: ... for i in xrange(100): self.MyOtherClass[i].plot(axes=AX) ... This call finally plots some data,

Re: [Matplotlib-users] Is there a 3D version of the quiver plot?

2013-03-07 Thread Benjamin Root
On Thu, Mar 7, 2013 at 2:14 PM, Brickle Macho wrote: > I have a list of surface normals I would like to plot. Is there a way > to plot a 3D vectors in matplotlib similar to how quiver plots 2D vectors? > > Not at this time, but that would make a great feature request! I think the current roadblo

[Matplotlib-users] Is there a 3D version of the quiver plot?

2013-03-07 Thread Brickle Macho
I have a list of surface normals I would like to plot. Is there a way to plot a 3D vectors in matplotlib similar to how quiver plots 2D vectors? -- Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester

Re: [Matplotlib-users] data format question

2013-03-07 Thread Clifford Lyon
Got it - thanks. On Wed, Mar 6, 2013 at 5:17 PM, Paul Hobson wrote: > > On Wed, Mar 6, 2013 at 2:00 PM, Clifford Lyon wrote: > >> I wish to make a boxplot with data in this format: >> >> Value, Frequency >> 0, 128329 >> 1, 20390 >> 2, 230 >> 3, 32 >> 4, 3 >> >> etc. Rather than expand this into

Re: [Matplotlib-users] DLL Load failure for matploltlib._png

2013-03-07 Thread Christoph Gohlke
On 3/7/2013 8:39 AM, Christoph Gohlke wrote: > On 3/7/2013 6:00 AM, Tejashri Kandolkar wrote: >> Hi, >> >> I built matplotlib1.2.0 with python3.2 on Windows7 from source. >> I built the libpng and freetype libs and linked them statically to >> matplotlib. >> >> Everything works fine on my machine,

Re: [Matplotlib-users] why does transform=None cause a patch not to be shown?

2013-03-07 Thread Phil Elson
The key thing to know about normal Artists is that they can have *just one*transform (to take an artist's coordinates into pixel space), so whilst there is no error when you do it, it is not possible to add the same artist to multiple Axes and have the desired effect. To answer your question, try

Re: [Matplotlib-users] why does transform=None cause a patch not to be shown?

2013-03-07 Thread Marianne C.
Hello, Not sure this is related, but it's also a behaviour I don't understand when adding a patch. Tony Yu has been providing many insightful explanations on artists, but I'm not there yet... So my apologies if this has been discussed already on this mailing list. I'm plotting two subplots and I

Re: [Matplotlib-users] DLL Load failure for matploltlib._png

2013-03-07 Thread Christoph Gohlke
On 3/7/2013 6:00 AM, Tejashri Kandolkar wrote: > Hi, > > I built matplotlib1.2.0 with python3.2 on Windows7 from source. > I built the libpng and freetype libs and linked them statically to > matplotlib. > > Everything works fine on my machine, I can run the matplotlib examples etc > But on a new W

[Matplotlib-users] DLL Load failure for matploltlib._png

2013-03-07 Thread Tejashri Kandolkar
Hi, I built matplotlib1.2.0 with python3.2 on Windows7 from source. I built the libpng and freetype libs and linked them statically to matplotlib. Everything works fine on my machine, I can run the matplotlib examples etc But on a new Win7 machine(with the exact same configuration as mine, except