SourceForge logo
SourceForge logo
Menu

matplotlib-devel — matplotlib developers

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(1)
Nov
(33)
Dec
(20)
2004 Jan
(7)
Feb
(44)
Mar
(51)
Apr
(43)
May
(43)
Jun
(36)
Jul
(61)
Aug
(44)
Sep
(25)
Oct
(82)
Nov
(97)
Dec
(47)
2005 Jan
(77)
Feb
(143)
Mar
(42)
Apr
(31)
May
(93)
Jun
(93)
Jul
(35)
Aug
(78)
Sep
(56)
Oct
(44)
Nov
(72)
Dec
(75)
2006 Jan
(116)
Feb
(99)
Mar
(181)
Apr
(171)
May
(112)
Jun
(86)
Jul
(91)
Aug
(111)
Sep
(77)
Oct
(72)
Nov
(57)
Dec
(51)
2007 Jan
(64)
Feb
(116)
Mar
(70)
Apr
(74)
May
(53)
Jun
(40)
Jul
(519)
Aug
(151)
Sep
(132)
Oct
(74)
Nov
(282)
Dec
(190)
2008 Jan
(141)
Feb
(67)
Mar
(69)
Apr
(96)
May
(227)
Jun
(404)
Jul
(399)
Aug
(96)
Sep
(120)
Oct
(205)
Nov
(126)
Dec
(261)
2009 Jan
(136)
Feb
(136)
Mar
(119)
Apr
(124)
May
(155)
Jun
(98)
Jul
(136)
Aug
(292)
Sep
(174)
Oct
(126)
Nov
(126)
Dec
(79)
2010 Jan
(109)
Feb
(83)
Mar
(139)
Apr
(91)
May
(79)
Jun
(164)
Jul
(184)
Aug
(146)
Sep
(163)
Oct
(128)
Nov
(70)
Dec
(73)
2011 Jan
(235)
Feb
(165)
Mar
(147)
Apr
(86)
May
(74)
Jun
(118)
Jul
(65)
Aug
(75)
Sep
(162)
Oct
(94)
Nov
(48)
Dec
(44)
2012 Jan
(49)
Feb
(40)
Mar
(88)
Apr
(35)
May
(52)
Jun
(69)
Jul
(90)
Aug
(123)
Sep
(112)
Oct
(120)
Nov
(105)
Dec
(116)
2013 Jan
(76)
Feb
(26)
Mar
(78)
Apr
(43)
May
(61)
Jun
(53)
Jul
(147)
Aug
(85)
Sep
(83)
Oct
(122)
Nov
(18)
Dec
(27)
2014 Jan
(58)
Feb
(25)
Mar
(49)
Apr
(17)
May
(29)
Jun
(39)
Jul
(53)
Aug
(52)
Sep
(35)
Oct
(47)
Nov
(110)
Dec
(27)
2015 Jan
(50)
Feb
(93)
Mar
(96)
Apr
(30)
May
(55)
Jun
(83)
Jul
(44)
Aug
(8)
Sep
(5)
Oct
Nov
(1)
Dec
(1)
2016 Jan
Feb
Mar
(1)
Apr
May
Jun
(2)
Jul
Aug
(3)
Sep
(1)
Oct
(3)
Nov
Dec
2017 Jan
Feb
(5)
Mar
Apr
May
Jun
Jul
(3)
Aug
Sep
(7)
Oct
Nov
Dec
2018 Jan
Feb
Mar
Apr
May
Jun
Jul
(2)
Aug
Sep
Oct
Nov
Dec
S M T W T F S




1
2
(1)
3
(4)
4
5
6
(15)
7
(2)
8
(1)
9
(3)
10
11
12
(8)
13
(6)
14
(4)
15
(6)
16
(1)
17
18
(1)
19
(4)
20
21
22
(7)
23
(12)
24
(2)
25
(1)
26
(3)
27
28
(2)
29
(1)
30
(2)

Showing 6 results of 6

From: Eric F. <ef...@ha...> - 2006年06月13日 20:08:18
Robert,
Thanks for the feedback. Comments are below. I think I addressed some 
items over the weekend, so the version in svn should work better than 
the one you tested, assuming you tested the original one I sent out as a 
diff.
Robert Hetland wrote:
> 
> Eric-
> 
> I had a chance to play around with the new quiver this morning. Here 
> are some thoughts:
> 
> 1. I read that somebody thought it was a bit slow, but this is not my 
> experience. I tried to quiver my model data (128x128 with masking), 
> and it rendered in a few seconds. I tried to look at images with more 
> arrows, but I could not actually see the arrows with so many points. 
> In my experience you can't put more than about O(100000) (i.e., about 
> 100x100) arrows on a figure and have it make any sense anyways.
> 
> 2. It seems to handle masking fine. I gave it masked arrays and 
> arrays with nans (it complained a bit about the masked array, but 
> rendered anyways). This is key for me.
> 
Interesting. I did nothing to explicitly deal with masked arrays or 
nans, so how well this works may be backend-dependent and/or platform 
dependent. If this turns out to be a problem, I can put in more 
explicit handling of masks and nans, but it is likely to add overhead.
Question: should handling of masks apply to all input arrays, or is it 
enough to have it apply to U, V, and C? It doesn't matter so much for 
Quiver, but it is one of the differences between pcolor and 
pcolormesh--support of masked X, Y complicates the former and might be 
hard to add to the latter. I hope it is unnecessary.
> 3. It handles colors nicely, but there is no apparent way to set the 
> color limits. Perhaps adding vmin and vmax as kwargs (matching pcolor) 
> would make some sense.
This brings up a more general design question: when should functionality 
like this be added via kwargs versus other mechanisms? It would be nice 
to have more uniformity among classes and functions, so that the general 
strategy could be documented once for a whole bunch of functions, 
instead of being repeated, with variations, for each. This would go 
along with better factoring out of chunks of functionality. In the 
absence of a big push, all this is going to have to happen piecemeal if 
at all, and complicated by the demands of backwards compatibility.
Returning to the specific question, however, I left vmin and vmax out to 
keep things simple, with the idea that there are other standard ways of 
setting them: via an explicit norm kwarg, via the clim method of any 
scalar mappable (which the Quiver is, since it inherits from 
PolyCollection), and via the pylab clim command. If there is a 
consensus that scalar mappables should uniformly support the vmin and 
vmax kwargs directly, then I don't mind adding that. I can see the 
argument for uniformity, given that this is common among scalar 
mappables. Probably it could be factored out by inclusion in 
ScalarMappable.__init__.
> 
> 4. I *really* like how the arrows get gray (and don't try to render at 
> a whole pixel) when they get small. I agree with the other person that 
> it might be nice to have a small dot to indicate zero velocity. No 
> dot should be rendered *ever* for values masked or NaNed, however.
> 
The graying is a function of the backend--specifically, whether 
rendering is antialiased.
The optional dot (actually a hexagon) for arrows below a threshold size 
is in svn, one of the changes I made over the weekend.
> 5. It's a bit of a pain to find values of scale and width that work 
> well, and quiver doesn't seem to make very good choices by default. I 
> don't think this is a big deal, but rather simply the price of the 
> added functionality. Making some more intelligent default choices 
> might not be a bad idea, though. In particular, smaller arrows when 
> there are more arrows to be rendered would be a good place to start.
> 
I changed the autoscaling so that both the length scale and the shaft 
width (and therefore the head size, which scales with shaft width) vary 
with the square root of the number of arrows, but with limits to prevent 
arrows from getting too large and fat or too small and thin. So I think 
you will find the svn version much improved in this regard.
> Some ideas for future work:
> 
> 1. I'm pretty happy with the polygons, but it would be nice to have 
> line collections instead. This would also facilitate my next idea:
> 
Not "line collections instead", but "in addition": the functionality and 
appearance are very different with polygons than with lines. I think I 
can add a line alternative with only a little extra code, but I won't 
even look at it again until this weekend, at the very earliest.
> 2. I would love to have a 'curly vector' tool. However, I'm not sure 
> how much to put into the curly_quiver package, and how much work must 
> be done by the user. I think that at a minimum, it would be nice to 
> give curly lines (i.e., an additional dimension to u and v)that have 
> arrows on the end of them, and leave it to the user to define what 
> those lines are somehow. If these lines could change color along their 
> track, then it would be the best thing ever made!
You can make curly lines with mapped colors using a LineCollection 
(recent change: it now inherits from ScalarMappable). Curly_quiver 
sounds like quite a different animal, though, and potentially much more 
difficult to do well; I don't think there would be much overlap with the 
present code in quiver, or with the code even after I add the line version.
Eric
From: Jeff W. <js...@fa...> - 2006年06月13日 17:14:00
With the latest svn matplotlib and numpy 0.9.8 I'm now getting:
Python 2.4.3 (#1, Mar 30 2006, 13:31:07)
[GCC 4.0.1 (Apple Computer, Inc. build 5247)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import pylab
Traceback (most recent call last):
 File "<stdin>", line 1, in ?
 File "/Users/jsw/lib/python/pylab.py", line 1, in ?
 from matplotlib.pylab import *
 File "/Users/jsw/lib/python/matplotlib/pylab.py", line 196, in ?
 import cm
 File "/Users/jsw/lib/python/matplotlib/cm.py", line 5, in ?
 import colors
 File "/Users/jsw/lib/python/matplotlib/colors.py", line 33, in ?
 from numerix import array, arange, take, put, Float, Int, where, \
 File "/Users/jsw/lib/python/matplotlib/numerix/__init__.py", line 66, in ?
 import numpy.oldnumeric as numpy
ImportError: No module named oldnumeric
With numpy 0.9.8 I can do
from numpy.core import oldnumeric
but not
from numpy import oldnumeric.
I suppose this is a consequence of Travis's numerix commits yesterday - 
is the latest numpy svn now required?
-Jeff
-- 
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : Jef...@no...
325 Broadway Office : Skaggs Research Cntr 1D-124
Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
From: V. <gae...@no...> - 2006年06月13日 15:34:08
On Tue, Jun 13, 2006 at 09:21:44AM -0500, John Hunter wrote:
> I'm not at all opposed to making a helper function like scatter to plot
> parametric lines with colormaps, but I don't think "plot" is the right
> vehicle, since it returns a Line2d, not a LineCollection, and since it
> is already heavily overloaded. parplot? =20
 I think having a helper function is a good idea. Not only does it
help the newcomer, but it also allows the oldtimer to write shorter and
more readable code.
 I find that "parplot" is not a great name for such a function, but I
cannot think of a better one. Maybe the list will have better ideas.
 Ga=EBl
From: Robert H. <he...@ta...> - 2006年06月13日 15:14:00
Eric-
I had a chance to play around with the new quiver this morning. Here 
are some thoughts:
1. I read that somebody thought it was a bit slow, but this is not my 
experience. I tried to quiver my model data (128x128 with masking), 
and it rendered in a few seconds. I tried to look at images with 
more arrows, but I could not actually see the arrows with so many 
points. In my experience you can't put more than about O(100000) 
(i.e., about 100x100) arrows on a figure and have it make any sense 
anyways.
2. It seems to handle masking fine. I gave it masked arrays and 
arrays with nans (it complained a bit about the masked array, but 
rendered anyways). This is key for me.
3. It handles colors nicely, but there is no apparent way to set the 
color limits. Perhaps adding vmin and vmax as kwargs (matching 
pcolor) would make some sense.
4. I *really* like how the arrows get gray (and don't try to render 
at a whole pixel) when they get small. I agree with the other person 
that it might be nice to have a small dot to indicate zero 
velocity. No dot should be rendered *ever* for values masked or 
NaNed, however.
5. It's a bit of a pain to find values of scale and width that work 
well, and quiver doesn't seem to make very good choices by default. 
I don't think this is a big deal, but rather simply the price of the 
added functionality. Making some more intelligent default choices 
might not be a bad idea, though. In particular, smaller arrows when 
there are more arrows to be rendered would be a good place to start.
Some ideas for future work:
1. I'm pretty happy with the polygons, but it would be nice to have 
line collections instead. This would also facilitate my next idea:
2. I would love to have a 'curly vector' tool. However, I'm not sure 
how much to put into the curly_quiver package, and how much work must 
be done by the user. I think that at a minimum, it would be nice to 
give curly lines (i.e., an additional dimension to u and v)that have 
arrows on the end of them, and leave it to the user to define what 
those lines are somehow. If these lines could change color along 
their track, then it would be the best thing ever made!
-Rob.
-----
Rob Hetland, Assistant Professor
Dept of Oceanography, Texas A&M University
p: 979-458-0096, f: 979-845-6331
e: he...@ta..., w: http://pong.tamu.edu
From: John H. <jdh...@ac...> - 2006年06月13日 14:29:16
>>>>> "Ga=EBl" =3D=3D Ga=EBl Varoquaux <gae...@no...> wr=
ites:
 Ga=EBl> 	Hi, It would be a nice feature for the plot command to
 Ga=EBl> accept a list of rgb colors of the same length than the data
 Ga=EBl> vectors to be plotted, in order to generate plots alike the
 Ga=EBl> one on the wiki
 Ga=EBl> "http://scipy.org/Cookbook/Matplotlib/MulticoloredLine".
Eric recently updated LineCollection to inherit from ScalarMappable
(in mpl 0.87.3) which means you can pass it a colormap instance.
Perhaps we should update the wiki example to reflect this. I'm not at
all opposed to making a helper function like scatter to plot
parametric lines with colormaps, but I don't think "plot" is the right
vehicle, since it returns a Line2d, not a LineCollection, and since it
is already heavily overloaded. parplot? =20
JDH
From: V. <gae...@no...> - 2006年06月13日 14:09:03
	Hi,
 It would be a nice feature for the plot command to accept a list of
rgb colors of the same length than the data vectors to be plotted, in
order to generate plots alike the one on the wiki
"http://scipy.org/Cookbook/Matplotlib/MulticoloredLine".
	Regards,
 Ga=EBl

Showing 6 results of 6

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /