Subject: Re: The Blue Marble is upside down!



Mauro Cavalcanti wrote:
> Dear Jeff & ALL,
>
> Attached is the latest version of my Basemap embedded in wxPython
> sample application. I have added a check menu option that allows one
> to toggle the overlay of the Blue Marble image on and off the Basemap
> figure. Everything works well -- except that the Blue Marble image is
> plotted upside down! I could not figure out the cause of this, say,
> rather bizarre behaviour. Any hints?
>
> Thanks in advance for any assistance you can provide.
>
> Best regards,
>
> PS This version has another known bug, to be eventually fixed -- if
> the user has plotted a point coordinate file, the points are erased if
> the Blue Marble overlay is requested because the PlotMap() routine
> calls ax.cla() at the start.
>
>
Mauro: The image flipping looks to be a Wx backend bug - it doesn't happen if
you use WxAgg instead.

-Jeff

P.S. It's not recommended to use tabs in python code. Especially don't mix
tabs and spaces (http://www.python.org/dev/peps/pep-0008/).

--
Jeffrey S. Whitaker Phone : (303)497-6313
NOAA/OAR/CDC R/PSD1 FAX : (303)497-6449
325 Broadway Boulder, CO, USA 80305-3328


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/




Programming list archiving by: Enterprise Git Hosting