atmtools / typhon

Tools for atmospheric research
http://www.radiativetransfer.org/
MIT License
58 stars 33 forks source link

Fix broken matplotlib tests #383

Closed lkluft closed 3 years ago

lkluft commented 3 years ago

This PR

  1. fixes a bug related to re-registration of colormaps which becomes illegal in Matplotlib >3.4.2
  2. silences a deprecation warning when checking for relative axis location in a subplot

Point 1 raises the question if cmap_from_{act,txt} should register the colormap. A possible option is to only return the colormap instance. This might cause some minor changes to the way we are loading the Typhon colormaps (need to register the colormaps there).