mpimet / easygems

Utilities for earth system model analysis
MIT License
1 stars 1 forks source link

Deduce pixel resolution from figure size and dpi #1

Closed lkluft closed 9 months ago

lkluft commented 9 months ago

Make both healpix_show and healpix_contour deduce the default resolution of the bitmap from the figure size and its dpi. This should be a slightly more "natural" default in the Matplotlib world as it automatically takes into account changing figures sizes and aspect ratios.

edit: Base calculation on actual bounding box of the axes (!) to also take into account subfigures.