-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add energy plot #108
base: main
Are you sure you want to change the base?
Add energy plot #108
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #108 +/- ##
==========================================
- Coverage 86.03% 85.28% -0.75%
==========================================
Files 24 25 +1
Lines 2843 2875 +32
==========================================
+ Hits 2446 2452 +6
- Misses 397 423 +26 ☔ View full report in Codecov by Sentry. |
pc_kwargs=pc_kwargs, | ||
) | ||
|
||
plot_collection.add_legend("energy", loc="outside right upper") |
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 opened an issue for this, it won't work across backends yet: #109
return plot_collection | ||
|
||
|
||
def _get_energy_ds(dt): |
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'll try to look at https://docs.xarray.dev/en/stable/generated/xarray.DataArray.diff.html and see if we can make all this a bit more direct. I think it will also break when getting transposed inputs
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 have to admit, that I spent more than I expected to write this part (and try alternatives) :-)
581334d
to
0fe58f1
Compare
This is not working, because we have a
np.nan
value📚 Documentation preview 📚: https://arviz-plots--108.org.readthedocs.build/en/108/