Re: [matplotlib-devel] quiver warnings

2012-03-11 Thread Eric Firing
On 03/11/2012 12:27 PM, D. S. McNeil wrote: > Hi! Bumping this upstream from Sage, where we use quiver to draw > slope fields. The following code > > ### > import matplotlib.pyplot as plt > import numpy as np > > fig = plt.figure() > r = np.arange(10) > X,Y = np.meshgrid(r,r) > U, V = np.cos(X),

[matplotlib-devel] quiver warnings

2012-03-11 Thread D. S. McNeil
Hi! Bumping this upstream from Sage, where we use quiver to draw slope fields. The following code ### import matplotlib.pyplot as plt import numpy as np fig = plt.figure() r = np.arange(10) X,Y = np.meshgrid(r,r) U, V = np.cos(X), np.sin(Y) Q = plt.quiver( U, V, headlength=0, headaxislength=0)

Re: [matplotlib-devel] Quiver Patch

2006-05-30 Thread Eric Firing
Jordan, I committed the quiver patch with a slight modification, no functional change. Eric - Original Message - From: Jordan Dawe <[EMAIL PROTECTED]> Date: Tuesday, May 30, 2006 12:39 pm Subject: [matplotlib-devel] Quiver Patch To: matplotlib development list > Ok, here&#x

Re: [matplotlib-devel] Quiver Patch

2006-05-30 Thread Eric Firing
AIL PROTECTED]> Date: Tuesday, May 30, 2006 12:39 pm Subject: [matplotlib-devel] Quiver Patch To: matplotlib development list > Ok, here's something of a weird patch, because I don't know how to > use > subversion properly. It has changes to axes.py which update quiver > so &

[matplotlib-devel] Quiver Patch

2006-05-30 Thread Jordan Dawe
Ok, here's something of a weird patch, because I don't know how to use subversion properly. It has changes to axes.py which update quiver so that it accepts arbitrary X,Y data; it doesn't demand the data be on a grid anymore. The other changes are to collections.py; I updated LineCollection s

Re: [matplotlib-devel] Quiver

2006-05-30 Thread Jordan Dawe
John Hunter wrote: Hope this helps, JDH Sweet, that helps a lot. Thank you very much. Jordan --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certificat

Re: [matplotlib-devel] Quiver

2006-05-30 Thread John Hunter
> "Jordan" == Jordan Dawe <[EMAIL PROTECTED]> writes: Jordan> Cool, that makes sense. Another question: what plot types Jordan> generate 1 Line2D objects? I can see quiver doing Jordan> something like that if one plots an 100x100 grid, but it Jordan> seems to me the result

Re: [matplotlib-devel] Quiver

2006-05-30 Thread Jordan Dawe
Jordan> Also, a question: why use collection objects? The Jordan> implimentation doesn't strike me as being much faster Jordan> rendering wise, but maybe I'm wrong. Is it just so all Jordan> the objects can be manipulated all at once by changing the Jordan> state of the col

Re: [matplotlib-devel] Quiver

2006-05-30 Thread John Hunter
> "Jordan" == Jordan Dawe <[EMAIL PROTECTED]> writes: Jordan> Also, a question: why use collection objects? The Jordan> implimentation doesn't strike me as being much faster Jordan> rendering wise, but maybe I'm wrong. Is it just so all Jordan> the objects can be manipulated

Re: [matplotlib-devel] Quiver

2006-05-30 Thread Jordan Dawe
Eric Firing wrote: Jordan, Are you sure you want to use a LineCollection for this? If you do, someone is sure to say, "But I want red arrows with black borders..." My impression from the earlier posts on this topic was that part of the trouble was an attempt to be too clever and too automa

Re: [matplotlib-devel] Quiver

2006-05-30 Thread John Hunter
> "Eric" == Eric Firing <[EMAIL PROTECTED]> writes: Eric> Is there any reason not to simply make LineCollection Eric> inherit from ScalarMappable the same way that Eric> PatchCollection does? I don't see any real disadvantage or Eric> backwards incompatibility, and I think it w

Re: [matplotlib-devel] Quiver

2006-05-30 Thread Eric Firing
May 29, 2006 7:18 pm Subject: [matplotlib-devel] Quiver To: matplotlib development list > Ok, I have some questions about what the protocol for patch > submission > should be, in terms of 'completeness' of the patch. > > I have a patch for the quiver function that is ha

Re: [matplotlib-devel] Quiver

2006-05-30 Thread Eric Firing
> > You can create a line collection that is color mappable by deriving > from LineCollection and ScalarMappable. It will take a little more > work to fully integrate it into the colormappable framework, eg so > colorbars and interactive changing of colormaps works as expected, but > this may b

Re: [matplotlib-devel] Quiver

2006-05-30 Thread John Hunter
> "Jordan" == Jordan Dawe <[EMAIL PROTECTED]> writes: Jordan> Ok, I have some questions about what the protocol for Jordan> patch submission should be, in terms of 'completeness' of Jordan> the patch. Jordan> I have a patch for the quiver function that is half Jordan> done

[matplotlib-devel] Quiver

2006-05-29 Thread Jordan Dawe
Ok, I have some questions about what the protocol for patch submission should be, in terms of 'completeness' of the patch. I have a patch for the quiver function that is half done... it has converted the arrows from patches to linecollections, and it will accept arbitrary X and Y coordinates f