-
Notifications
You must be signed in to change notification settings - Fork 10
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 animate_list blank figures #80
Fix animate_list blank figures #80
Conversation
Codecov Report
@@ Coverage Diff @@
## master #80 +/- ##
=========================================
+ Coverage 47.05% 47.5% +0.44%
=========================================
Files 11 11
Lines 1052 1061 +9
Branches 210 212 +2
=========================================
+ Hits 495 504 +9
Misses 496 496
Partials 61 61
Continue to review full report at Codecov.
|
xbout/boutdataset.py
Outdated
@@ -209,10 +212,12 @@ def animate_list(self, variables, animate_over='t', save_as=None, show=False, fp | |||
""" | |||
|
|||
nvars = len(variables) | |||
std_format = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it makes sense to remove the blank figures even when nrows and/or ncols are given - I think it's unlikely that the blank axes are useful. So we can remove the std_format
condition.
Even if 'nrows' and/or 'ncols' was given explicitly, it makes sense to delete any blank axes with no plot, so remove the std_format flag.
We will likely change this in the future. But for now this will remove blank subplots from figure.