P.Romero wrote:
>
> Hi,
>
> Im having a problem with contourf & basemap;
>
> theres a fairly wide gap showing up around the top&left edges of my plot.
>
> Im trying to do the following:
>
> Import numpy as np
>
> Z=my_data( …)
>
> m=basemap( … )
>
> X,Y=m(*np.meshgrid(Z.lon,Z.lat))
>
> Znp=Z.filled
>
> cs=m.contourf(X,Y,Znp)
>
> using this method, Im experiencing a strange gap around the left&top 
> edges of the plot.
>
> It seems as if the contour data is not aligning correctly with the 
> basemap, or is somehow ‘falling short’ of filling in the entire area.
>
> Ive used this same method to plot other contour plots and have never 
> experienced this type of gap (using the same version of 
> basemap/matplotlib/numpy/etc.).
>
> Im not sure if there’s something wrong with the way Im creating my 
> data, or if this is a problem with basemap.
>
> In either case, can someone please provide me with some help figuring 
> out why that gap is appearing?
>
> Ive attached an npz file with my 3 arrays: X,Y,Znp.
>
> Ive also attached a png image of my output, where the gap is clearly 
> evident around the left&top edges.
>
> Thanks,
>
> P.Romero
>

Pablo: Please include a working example that creates your example plot.

-Jeff


------------------------------------------------------------------------------
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to