Thank you, and I apologize if the question wasnt appropriate for this list.
P.Romero
> To: matplotlib-users@lists.sourceforge.net
> From: j...@iki.fi
> Date: Wed, 18 Mar 2009 07:44:33 +0200
> Subject: Re: [Matplotlib-users] quick numpy questi
quick numpy-related question.
I want to use numpy.arange() to create multiple arrays, and then I want to join
these arrays (or individual elements) to the final array without repeating
existing elements (create a 'union' from 2 or more arrays or individual
elements).
example:
lev=np.arange(
problem with contour() & basemap; contours
> overlapping map
>
> Jouni K. Seppänen wrote:
>> Pablo Romero writes:
>>
>>> How can I go about correcting this, so that the 'basemap.contour()'
>>> function draws the contours BEFORE drawing the coastlines
Im having an issue with the plotting of contours using basemap.
My contours are incorrectly being plotted on top of my basemap
coastlines&continents.
Ive attached an image as an example:
Note that the red contour lines near land areas are OVERLAPPING the coastlines
& continents, instead of b
Date: Mon, 16 Mar 2009 08:58:23 -1000
> From: efir...@hawaii.edu
> Subject: Re: [Matplotlib-users] FW: basemap.contourf, colormap,
> extend='none', & levels array question
> To: romero...@hotmail.com
> CC: matplotlib-users@lists.sourceforge.net
>
> Pablo Rome
il.com
> CC: matplotlib-users@lists.sourceforge.net
>
> Pablo Romero wrote:
>> Eric,
>> I've uploaded the file.
>> The only thing I should mention is that my 'X' and 'Y' arrays are not masked
>> arrays, they are 2d arrays that I created using the
> To: romero...@hotmail.com
> CC: matplotlib-users@lists.sourceforge.net
>
> Pablo Romero wrote:
>> 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
; From: efir...@hawaii.edu
> Subject: Re: [Matplotlib-users] FW: basemap.contourf, colormap,
> extend='none', & levels array question
> To: romero...@hotmail.com
> CC: matplotlib-users@lists.sourceforge.net
>
> Pablo Romero wrote:
>> Eric,
>>
>> the
---
> Date: Sun, 15 Mar 2009 18:01:08 -1000
> From: efir...@hawaii.edu
> Subject: Re: [Matplotlib-users] FW: basemap.contourf, colormap,
> extend='none', & levels array question
> To: romero...@hotmail.com
> CC: matplotlib-users@lists.sourceforge.net
>
> Pablo Romero wrot
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.
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
-1000
> From: efir...@hawaii.edu
> Subject: Re: [Matplotlib-users] question about levels & colormaps for contour
> functions
> To: romero...@hotmail.com; matplotlib-users@lists.sourceforge.net
>
> Pablo Romero wrote:
>> Eric,
>>
>> I believe the problem is t
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 '
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
Anyway, thanks again for the help,
P.Romero
> Date: Sat, 14 Mar 2009 17:57:27 -1000
> From: efir...@hawaii.edu
> Subject: Re: [Matplotlib-users] problem with (poor) quiver performance & X,
> Y, U, V arrays
> To: romero...@hotmail.com
>
Im experiencing very poor performance when using the 'quiver' function over
relatively large grids.
Im using quiver to plot wind 'u,v' data over a lat/lon grid using basemap.
quiver performs decently over small lat/lon ranges, such as a bounding box of
lat(0-30),lon(-120- -100), but when I try
Hi,
I need help doing the following:
I need to create a square png image (256x256 pixels) with NO margins. I need my
plot area to completely fill this 256x256 box, regardless of what the plot's
aspect ratio should be; i.e., I want the plot area stretched or compressed
either in the vertical o
17 matches
Mail list logo