ortk95 / planetmapper

PlanetMapper: An open source Python package for visualising, navigating and mapping Solar System observations
https://planetmapper.readthedocs.io
MIT License
10 stars 1 forks source link

Update matplotlib transforms when cache cleared #389

Closed ortk95 closed 3 weeks ago

ortk95 commented 1 month ago

Currently, calling e.g. plot_wireframe_xy doesn't necessarily update the transforms, as it only internally calls _get_matplotlib_angular_fixed2xy_transform. It would therefore be more robust to update the transforms whenever the cache is cleared - this would have a (likely incredibly small) performance penalty, but would be worth it to ensure consistency in the transform invalidation behaviour.

May also be worth seeing if the documentation for the transforms needs any slight polish while doing this.