Issue with basemap.plot() when lon_0 nonzero

Hello,

I’m trying to make a plot data on a map with the ‘cyl’ projection with a shifted centerline (lon_0=180), but I receive an error when shiftdata() is called. Since the plot works when lon_0=0, this seems to be a bug.

I’ve posted the code, error, and plots here:
http://nbviewer.ipython.org/gist/anonymous/cbfe6d0f66ff3a8186c8/shiftdata_issue.ipynb

It might be related to this issue:
https://github.com/matplotlib/basemap/issues/126

Any insight would be appreciated!
Scott

Cool notebook. I took the liberty of giving it a go with cartopy, and you can see the results here http://nbviewer.ipython.org/gist/pelson/10822698

I’d agree that the issue you linked to does look very similar to the issue you are seeing, so I think this is very likely a bug.

Cheers,

···

On 16 April 2014 00:54, Scott Henderson <sth54@…163…> wrote:

Hello,

I’m trying to make a plot data on a map with the ‘cyl’ projection with a shifted centerline (lon_0=180), but I receive an error when shiftdata() is called. Since the plot works when lon_0=0, this seems to be a bug.

I’ve posted the code, error, and plots here:

http://nbviewer.ipython.org/gist/anonymous/cbfe6d0f66ff3a8186c8/shiftdata_issue.ipynb

It might be related to this issue:

https://github.com/matplotlib/basemap/issues/126

Any insight would be appreciated!

Scott


Learn Graph Databases - Download FREE O’Reilly Book

“Graph Databases” is the definitive new guide to graph databases and their

applications. Written by three acclaimed leaders in the field,

this first edition is now available. Download your free book today!

http://p.sf.net/sfu/NeoTech


Matplotlib-users mailing list

Matplotlib-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-users