On Mon, Sep 13, 2010 at 8:21 AM, mdekauwe <mdeka...@gmail.com> wrote:

>
> Hi,
>
> Well hopefully doing what you suggested correctly...
>
>  numrows = 17
>  numcols = 16
>  ulat, llat, ulon, llon = 15.61, 15.15, -1.32, -1.74
>  m = Basemap(projection='geos', lon_0=0.0, llcrnrlon=llon,
>                      llcrnrlat=llat, urcrnrlon=ulon, urcrnrlat=ulat,
>                      resolution='c')
>
>  data2 = np.random.sample((17,16))
>  x = np.linspace(-1.74, -1.32, 16)
>  y = np.linspace(15.15, 15.61, 17)
>  px, py = m(x, y)
>  X, Y = np.meshgrid(px, py)
>  m.contourf(X, Y, data2, colors='black')
>  plt.show()
>
> Doesn't seem to work either?
>
> thanks,
>
> Martin
>
>
Martin,

Double-check the shape of the X and the Y arrays.  Make sure they have the
same shape as data2.  I would be willing to bet that some of the shapes got
reversed.

Ben Root
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to