Re: [Matplotlib-users] colormap creation

2009-08-14 Thread P.R.
rmap.from_list()' method is very brief, and there wasn't an example, so I didn't see it right away... Anyway, problem solved. Sorry for the confusion, & thanks again for the help P.Romero -----Original Message- From: Jeff Whitaker [mailto:jsw...@fastmail.fm] Sent: 2009-08

[Matplotlib-users] colormap creation

2009-08-14 Thread P.R.
Can someone please recommend a (semi) automatic way to create the rgb dictionaries needed for colormap creation? Basically, I have a 'general' idea of how I want my colors ordered, but Im finding it difficult to create the smooth transitions by manually editing the rgb dictionary for my custom colo

Re: [Matplotlib-users] mpl.colors.BoundaryNorm question

2009-08-14 Thread P.R.
with, say, cm.jet? Thanks, P.Romero -Original Message- From: Eric Firing [mailto:efir...@hawaii.edu] Sent: 2009-08-14 12:49 PM To: P.R. Cc: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] mpl.colors.BoundaryNorm question Eric Firing wrote: It occurred to me after po

[Matplotlib-users] mpl.colors.BoundaryNorm question

2009-08-13 Thread P.R.
Hi, I'd like to generate a colormap index based on an array of levels & using an existing colormap (Spectral). However, Id like the cmap index to start at the 0.3 value of the Spectral scale (orange/yellow area) instead of starting at the '0' scale value (red area), and then continue until the 0.8

Re: [Matplotlib-users] controlling quiver colors with C arg

2009-08-13 Thread P.R.
Nevermind, I found the answer; quiver also accepts the cmap & norm args... Sorry for the double post as well...email/outlook issues... Thanks, P.Romero -Original Message- From: P.R. [mailto:romero...@hotmail.com] Sent: 2009-08-13 9:17 PM To: matplotlib-users@lists.sourceforge

[Matplotlib-users] controlling quiver colors with C arg

2009-08-13 Thread P.R.
Question: If I have an array C with values for the arrow vectors' magnitudes, how can I control the magnitude levels & colors that are assigned to the quiver arrows? I successfully managed to plot multi-colored arrows using the 'C' arg, but I'd also like to control the levels & colors, and also pl

Re: [Matplotlib-users] contourf interpolation/smoothness

2009-08-13 Thread P.R.
Jeff, The docstring is clear. My question was on how to actually create the lats&lons arrays (sorry, Im not a very strong python programmer). Could you please recommend a method for dividing a lat/lon array in half? Again, I apologize for asking such a basic question... Thanks,

Re: [Matplotlib-users] contourf interpolation/smoothness

2009-08-13 Thread P.R.
n handle arbitrary grid sizes & resolutions, so I can't just hard-code the X&Y sizes for the finer grid. Any ideas? Thanks, P.Romero -Original Message- From: Jeff Whitaker [mailto:jsw...@fastmail.fm] Sent: 2009-08-13 7:15 AM To: Eric Firing Cc: P.R.; matplotlib-users@lists.sourceforge.ne

Re: [Matplotlib-users] contourf interpolation/smoothness

2009-08-13 Thread P.R.
Jeff, Perfect. I'll give that a try... Thanks again, P.R. -Original Message- From: Jeff Whitaker [mailto:jsw...@fastmail.fm] Sent: 2009-08-13 7:15 AM To: Eric Firing Cc: P.R.; matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] contourf interpolation/smoot

[Matplotlib-users] contourf interpolation/smoothness

2009-08-12 Thread P.R.
This has probably been asked before, so I apologize... Is it possible to improve the smoothness/interpolation used in contourf? I know that the interpolation can be set for imshow(pcolor?), but I couldn't see how to set it for contourf. Right now, contourf is producing some relatively jagged outp

matplotlib-users@lists.sourceforge.net

2009-08-11 Thread P.R.
ver to freak out & try to draw some extreme vector arrows... I fixed the mask, and it works fine now... Sorry for the bother, but thanks anyway for the help... Regards, P.R. -Original Message- From: Jeff Whitaker [mailto:jsw...@fastmail.fm] Sent: 2009-08-11 11:05 PM To: P.R. Cc: matp

matplotlib-users@lists.sourceforge.net

2009-08-11 Thread P.R.
this method to solve a problem I was having with quiver performing really slowly when using those grads masked arrays as input) x,y,u,v = delete_masked_points(X.ravel(), Y.ravel(), U.ravel(), V.ravel()) Let me know if you need anything else... Thanks, P.R. -Original Message- From: J

[Matplotlib-users] detailed political boundaries & major cities for basemap

2009-08-06 Thread P.R.
Hi, Im looking for a tutorial/method/dataset to setup more detailed political boundaries & also automatically generate major cities on a basemap projection. Please help, Thanks, P.R.M. -- Let Crystal Reports handle the r