matplotlib / basemap

Plot on map projections (with coastlines and political boundaries) using matplotlib
MIT License
779 stars 392 forks source link

Zooming on Basemap plots loses Axis Ticks #342

Open mp-v2 opened 7 years ago

mp-v2 commented 7 years ago

Issue described here: http://stackoverflow.com/questions/22635144/preserving-axis-annotation-while-interactively-zooming-in-on-a-matplotlib-basema

Axis used in Basemap plots loses the tickmarks when plot is zoomed.

I would suggest a boolian operator to allow for readjustment of axis ticks?

WeatherGod commented 7 years ago

Unfortunately, it isn't as easy as just a boolean flag to allow readjustment of the ticks. The way the ticks are computed right now is a bit hacky, and zoom/pan barely works as expected right now as it is. What may work is to register a callback function that does the tick draws on the axes limits changed event.

As you may or may not be aware, basemap is currently in a long-term deprecation process (all new development efforts should be directed to cartopy). I'll certainly review any pull requests for bug fixes and/or new features, but come 2020, we should all have transitioned over to cartopy.

On Mon, Feb 13, 2017 at 12:48 PM, mat2py notifications@github.com wrote:

Issue described here: http://stackoverflow.com/questions/22635144/preserving- axis-annotation-while-interactively-zooming-in-on-a-matplotlib-basema

Axis used in Basemap plots loses the tickmarks when plot is zoomed.

I would suggest a boolian operator to allow for readjustment of axis ticks?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/matplotlib/basemap/issues/342, or mute the thread https://github.com/notifications/unsubscribe-auth/AARy-ImsHC5D-k7cUyTGeLyJKFhMI-KVks5rcJd1gaJpZM4L_g2s .