Map projections and pyplot.plot

I have a basemap figure where data is placed atop, which can be in any number of differing projections. However, when I plot a line over it using pyplot.plot, the line doesn’t show unless I’m using the cylindrical equidistant projection.

From what I gather this is a limitation of the plot command. Can anyone confirm this? Is this a limitation in that the ‘cyl’ projection is assumed by pyplot.plot?

I saw a post that mentioned that a projection kwarg would not be added to the plot command. Does this mean that the plot command will realize the projection of the gca basemap?

Bruce

···

Bruce W. Ford

Bruce: Did you convert the coordinates of the data you're plotting with pyplot.plot to map projection coordinates (by passing the lat/lon values to the Basemap instance)?

-Jeff

···

On 12/1/11 7:34 AM, Bruce Ford wrote:

I have a basemap figure where data is placed atop, which can be in any number of differing projections. However, when I plot a line over it using pyplot.plot, the line doesn't show unless I'm using the cylindrical equidistant projection.

From what I gather this is a limitation of the plot command. Can anyone confirm this? Is this a limitation in that the 'cyl' projection is assumed by pyplot.plot?

I saw a post that mentioned that a projection kwarg would not be added to the plot command. Does this mean that the plot command will realize the projection of the gca basemap?

Bruce

---------------------------------------
Bruce W. Ford

Yes, as a matter of fact I create an identical basemap object as the plotted gridded data. And the lines (tropical cyclone tracks) plot fine as long as the projection is ‘cyl’.

Bruce

···

Bruce W. Ford
Clear Science, Inc.
bruce@…3872…
http://www.ClearScienceInc.com

http://www.facebook.com/clearscience
http://www.twitter.com/ROVs_rule
Phone: (904) 796-8101

Fax: (904) 379-9704
8241 Parkridge Circle N.
Jacksonville, FL 32211
Skype: bruce.w.ford

On Thu, Dec 1, 2011 at 12:35 PM, Jeff Whitaker <jswhit@…83…146…> wrote:

On 12/1/11 7:34 AM, Bruce Ford wrote:

I have a basemap figure where data is placed atop, which can be in any number of differing projections. However, when I plot a line over it using pyplot.plot, the line doesn’t show unless I’m using the cylindrical equidistant projection.

From what I gather this is a limitation of the plot command. Can anyone confirm this? Is this a limitation in that the ‘cyl’ projection is assumed by pyplot.plot?

I saw a post that mentioned that a projection kwarg would not be added to the plot command. Does this mean that the plot command will realize the projection of the gca basemap?

Bruce


Bruce W. Ford

Bruce: Did you convert the coordinates of the data you’re plotting with pyplot.plot to map projection coordinates (by passing the lat/lon values to the Basemap instance)?

-Jeff

  Yes, as a matter of fact I create an identical basemap

object as the plotted gridded data. And the lines (tropical
cyclone tracks) plot fine as long as the projection is ‘cyl’.

Bruce

Bruce:  Can you post a self-contained example?

-Jeff
···
-- Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : 325 Broadway Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web :

Jeffrey.S.Whitaker@…259…http://tinyurl.com/5telg