[Matplotlib-users] matplotlib/basemap plot geo data on background map

2010-09-10 Thread izzybitsie
Hi, I'm new to matplotlib and I'm looking for an easy way to plot geographical data on a background map: bkgmap.png http://old.nabble.com/file/p29679002/bkgmap.png So far I only found out about warpimage() to do this but only part of bkgmap.png comes up in the output image. I think this is

Re: [Matplotlib-users] matplotlib/basemap plot geo data on background map

2010-09-10 Thread Aman Thakral
If you're just looking for points, you can use ax.scatter(). It will plot the points. Also, make sure you set the zorder keyword argument in the scatter. Example: x=range(10) y=range(10) z=range(10,20) ax.scatter(x,y,c=z,zorder=10) Hope this helps, Aman On Fri, Sep 10, 2010 at 1:06 PM,

Re: [Matplotlib-users] matplotlib/basemap plot geo data on background map

2010-09-10 Thread Jan Skowron
Hi, documentation of mpl_toolkits.basemap.warpimage (http://matplotlib.sourceforge.net/basemap/doc/html/api/basemap_api.html#mpl_toolkits.basemap.Basemap.warpimage) states that it could only be used with a very specific set of images: Specified image must have pixels covering the whole globe in a

Re: [Matplotlib-users] matplotlib/basemap plot geo data on background map

2010-09-10 Thread izzybitsie
Thanks for your answer. I'm actually looking to plot filled curves whose points are lat/lon points on top of a given background map. The problem experienced is misrepresentation of background map when I insert it using warpimage(), the only function to do this I found so far. Aman Thakral

Re: [Matplotlib-users] matplotlib/basemap plot geo data on background map

2010-09-10 Thread izzybitsie
I tested the same plot with a background image in Mercator with same results and I also tested with Mercator covering almost the entire world with the same results. Only a little portion of the background image shows as background although the polygon looks OK in all cases (with maps drawn and

Re: [Matplotlib-users] matplotlib/basemap plot geo data on background map

2010-09-10 Thread Jan Skowron
On Fri, Sep 10, 2010 at 14:46, izzybitsie isid...@juno.com wrote: I did not understand the need for me to write my own transformation functions. I only used lat/lon-x/y for the points in the curve and the polygon shows up OK. What should I write my own transformations for? Because matplotlib