Hi,
When using the macosx backend and the pan/zoom tool, I cannot zoom
in/out with the right mouse button. The left mouse button does the
panning as usual. This only seems to happen with the macosx backend.
Other backends (GTKAgg, WXAgg) work fine. I am using ipython [-pylab]
and matplotlib from s
Eric,
Its Still not working, still getting white/empty areas where Z=0.0
Here's my ipython output:
[6] ga-> Znp=np.array(Z.filled())
[7] ga-> Znp
Out[7]:
array([[ 0., 0., 0., ..., 0.,
0., 0.],
[ 0., 0.,
Pablo Romero wrote:
> Eric,
>
> the GrADS interface is called 'pygrads'.
> it was developed by arlindo da silva of the 'opengrads' project; a project
> aimed at extending & enhancing the capabilities of grads by adding
> 'extensions' to the core grads engine.
>
> Many users are switching to
Hi all,
[ apologies for the semi-spam, I'll keep this brief and expect all
replies off-list ]
IPython is a project that many of you on this list are likely to use
in your daily work, either directly or indirectly (if you've embedded
it or used it as a component of some other system). I would sim
Eric,
the GrADS interface is called 'pygrads'.
it was developed by arlindo da silva of the 'opengrads' project; a project
aimed at extending & enhancing the capabilities of grads by adding 'extensions'
to the core grads engine.
Many users are switching to plotting with pygrads due to the fa
Pablo Romero wrote:
> it appears to be a masked array, but a "customized" one, that's being created
> from the interface to the external program Im working with (application named
> GrADS). here's some more info...
>
Aha, very interesting! I know about grads but don't use it, and I did
not k
it appears to be a masked array, but a "customized" one, that's being created
from the interface to the external program Im working with (application named
GrADS). here's some more info...
[7] ga-> Z?
Type: GaField
Base Class:
String Form:
[[0.0 0.0 0.0 ..., 0.0 0.0 0.0]
[0.0 0.
>
> What is the result from typing
>
> type(Z)
> norm([Z[-1,0]])
Actually, I don't know how your data are arranged, so try all 4 corners:
norm([Z[0,0], Z[0,-1], Z[-1,0], Z[-1,-1]])
Eric
--
Apps built with the Adobe(R
Pablo Romero wrote:
>
> Im experiencing unexpected behavior with contourf.
> Im trying to plot float values of '0.0', while also using the following
> levels array with contourf():
>
> Lv=(0,1,3,5,6,7,8,9,10,12,14,16,18,20,25,30,35,40,50,75)
>
> I've attached a sample image of the output.
> the
On Sat, Mar 14, 2009 at 8:23 AM, Jeff Whitaker wrote:
> Timothée Lecomte wrote:
> > Jeff Whitaker wrote:
> >> Jeff Whitaker wrote:
> >>> Timothée Lecomte wrote:
> Dear all,
>
> I am using matplotlib with a great pleasure, and I enjoy its
> capabilities.
> I have recently
Pablo Romero wrote:
> This is related to a previous question I had about colormaps;
> Im looking for a method to evenly split up a colormap into an RGB colors
> array.
> something like:
>
> def cmap_to_array(cmap,N):
> ...
>
> mycolors=cmap_to_array(cm.jet,20)
> lev=np.arange(1,20,1)
> cs=cont
Please disregard this question, as a solution was found to this problem using
the 'BoundaryNorm' function.
P.Romero
> From: romero...@hotmail.com
> To: matplotlib-users@lists.sourceforge.net
> Date: Sun, 15 Mar 2009 13:37:04 -0700
> Subject: [Matplotlib
Eric,
the "BoundaryNorm" was what I was looking for.
it did exactly what I needed; split the colormap up evenly into discrete colors
based on the number of elements in my levels array.
Thanks,
P.Romero
> Date: Sun, 15 Mar 2009 10:38:22 -1000
> From: efi
Pablo Romero wrote:
> Eric,
>
> I believe the problem is that my 19 levels are not evenly distributed;
>
> Lv=(1,3,5,6,7,8,9,10,12,14,16,18,20,25,30,35,40,50,75)
No, I don't think that has much to do with it, unless the problem is
that the colors of some levels are too similar.
Again, pleas
This is related to a previous question I had about colormaps;
Im looking for a method to evenly split up a colormap into an RGB colors array.
something like:
def cmap_to_array(cmap,N):
...
mycolors=cmap_to_array(cm.jet,20)
lev=np.arange(1,20,1)
cs=contourf(Z,lev,colors=mycolors)
...
where '
Pablo Romero wrote:
> Hi,
>
> I would like to know how I can pass an array of levels and also a colormap to
> the contour() function and have the levels span the entire colormap.
> example...
>
> if I do the following
>
>
> Lv=(1,3,5,6,7,8,9,10,12,14,16,18,20,25,30,35,40,50,75)
>
> c
Hi,
I would like to know how I can pass an array of levels and also a colormap to
the contour() function and have the levels span the entire colormap. example...
if I do the following
Lv=(1,3,5,6,7,8,9,10,12,14,16,18,20,25,30,35,40,50,75)
cs=plt.contourf(X,Y,waveheight,Lv,cmap=cm.jet
17 matches
Mail list logo