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 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-lo

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

2010-05-24 Thread P. R.M.
within 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 pyplo

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

2010-05-24 Thread P. R.M.
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, Christopher Barker

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 > 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 differe

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 Whitaker> 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 addi

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 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 are available (no

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 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 respect to loa

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 segm