Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken matplotlib tests #383

Merged
merged 2 commits into from
May 19, 2021
Merged

Fix broken matplotlib tests #383

merged 2 commits into from
May 19, 2021

Conversation

lkluft
Copy link
Member

@lkluft lkluft commented May 19, 2021

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).

@lkluft lkluft requested a review from olemke May 19, 2021 12:57
Copy link
Member

@olemke olemke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll merge this for now to get the tests working again. We can discuss not registering the colormaps separately.

@olemke olemke merged commit 59ca873 into atmtools:master May 19, 2021
@lkluft lkluft deleted the fix-tests branch August 26, 2021 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants