Fix Hera plotting#156
Merged
Merged
Conversation
…to using PDF file format
Collaborator
Author
|
@ligiabernardet This should fix python plotting on Hera for after the short course. |
Collaborator
|
Thank you! |
climbfuji
approved these changes
Jan 7, 2020
dustinswales
pushed a commit
to dustinswales/ccpp-scm
that referenced
this pull request
May 16, 2022
Fix Hera plotting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hera uses an older version of the Pandas package where the following line causes an error:
pandas.plotting.register_matplotlib_converters()This line was added because not having it there with newer versions of Pandas leads to a "Future Warning". This was put in a try block.
Also, it appears that Hera doesn't have dvipng installed, which is needed to render LaTeX in plots and save as a PNG file. The file format has been changed back to using PDF instead.
Note: This should be merged after the short course since instructions mention PNG, and the AMI has no problem with plotting PNGs.