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, -104.5, inverse=True)

You can find much more accurate information and examples from doing a
help(map).

Ben Root

On Mon, May 24, 2010 at 6:12 PM, Christopher Barker
<chris.bar...@noaa.gov>wrote:

> 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
>
> > you
> > can just use the pyplot commands or axes methods, and then use the
> > Basemap set_axes_limits method to make sure the aspect ratio and axes
> > limits get reset correctly.
>
> I'll look into that too -- if I have time.
>
> Thanks,
>    -Chris
>
>
>
> --
> Christopher Barker, Ph.D.
> Oceanographer
>
> Emergency Response Division
> NOAA/NOS/OR&R            (206) 526-6959   voice
> 7600 Sand Point Way NE   (206) 526-6329   fax
> Seattle, WA  98115       (206) 526-6317   main reception
>
> chris.bar...@noaa.gov
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
------------------------------------------------------------------------------

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

Reply via email to