Re: [Matplotlib-users] [matplotlib-devel] basemap domain changes on pyplot call

2010-05-25 Thread Benjamin Root
Chris, If you have lat-long, you can call your basemap object to convert it to map coordinates. I forget if you have to call inverse=True or not. Off the top of my head it would be something like this (assuming 'map' is your Basemap object that has already been initialized): x, y = map(45.0,

Re: [Matplotlib-users] [matplotlib-devel] basemap domain changes on pyplot call

2010-05-24 Thread Benjamin Root
On Fri, May 21, 2010 at 5:16 PM, Jeff Whitaker jsw...@fastmail.fm wrote: On 5/21/10 3:57 PM, Benjamin Root wrote: I did some more digging and I think I have a hypothesis for what is happening. There is only one main difference between a call to .drawstates() and .readshapefiles() with

Re: [Matplotlib-users] [matplotlib-devel] basemap domain changes on pyplot call

2010-05-24 Thread Christopher Barker
Benjamin Root wrote: On Fri, May 21, 2010 at 5:16 PM, Jeff Whitaker jsw...@fastmail.fm Ben: That's why you should use the basemap methods where possible (they handle these things for you). Yeah, that wasn't possible in my case. In addition, not all pyplot plotting functions

Re: [Matplotlib-users] [matplotlib-devel] basemap domain changes on pyplot call

2010-05-24 Thread Jeff Whitaker
On 5/24/10 10:24 AM, Christopher Barker wrote: Benjamin Root wrote: On Fri, May 21, 2010 at 5:16 PM, Jeff Whitakerjsw...@fastmail.fm Ben: That's why you should use the basemap methods where possible (they handle these things for you). Yeah, that wasn't possible in my case.

Re: [Matplotlib-users] [matplotlib-devel] basemap domain changes on pyplot call

2010-05-24 Thread Jeff Whitaker
On 5/24/10 8:45 AM, Benjamin Root wrote: On Fri, May 21, 2010 at 5:16 PM, Jeff Whitaker jsw...@fastmail.fm mailto:jsw...@fastmail.fm wrote: On 5/21/10 3:57 PM, Benjamin Root wrote: I did some more digging and I think I have a hypothesis for what is happening. There is

Re: [Matplotlib-users] [matplotlib-devel] basemap domain changes on pyplot call

2010-05-24 Thread P. R.M.
2010 11:44:53 -0600 From: jsw...@fastmail.fm To: chris.bar...@noaa.gov; matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] [matplotlib-devel] basemap domain changes on pyplot call On 5/24/10 10:24 AM, Christopher Barker wrote: Benjamin Root wrote

Re: [Matplotlib-users] [matplotlib-devel] basemap domain changes on pyplot call

2010-05-24 Thread P. R.M.
the matplotlib core) ??? thanks again, p.romero Date: Mon, 24 May 2010 11:44:53 -0600 From: jsw...@fastmail.fm To: chris.bar...@noaa.gov; matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] [matplotlib-devel] basemap domain changes on pyplot call On 5/24/10 10:24 AM

Re: [Matplotlib-users] [matplotlib-devel] basemap domain changes on pyplot call

2010-05-24 Thread Christopher Barker
Jeff Whitaker wrote: On 5/24/10 10:24 AM, Christopher Barker wrote: I need to be able to draw a filled polygon from coordinates in memory, for instance, but didn't see a way to do this directly. Chris: If you have the map projection coordinates of the polygon, nope -- we've got lat-long

Re: [Matplotlib-users] [matplotlib-devel] basemap domain changes on pyplot call

2010-05-21 Thread Jeff Whitaker
On 5/21/10 3:57 PM, Benjamin Root wrote: I did some more digging and I think I have a hypothesis for what is happening. There is only one main difference between a call to .drawstates() and .readshapefiles() with respect to loading and plotting data. .drawstates() loads *only* the line