-
-
Notifications
You must be signed in to change notification settings - Fork 411
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
Adding example for coords argument in documentation #1566
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1566 +/- ##
=======================================
Coverage 90.27% 90.27%
=======================================
Files 105 105
Lines 11397 11397
=======================================
Hits 10289 10289
Misses 1108 1108
Continue to review full report at Codecov.
|
Hi @OriolAbril could you check this PR and suggest any changes if any. Thank You |
arviz/plots/posteriorplot.py
Outdated
:context: close-figs | ||
|
||
>>> coords = {"school": ["Choate","Phillips Exeter"]} | ||
>>> az.plot_posterior(data, var_names=["mu", "theta"], coords=coords, rope=(-1, 1)) |
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 would remove the rope to focus on coords
usage.
arviz/plots/posteriorplot.py
Outdated
@@ -149,6 +149,13 @@ def plot_posterior( | |||
>>> rope = {'mu': [{'rope': (-2, 2)}], 'theta': [{'school': 'Choate', 'rope': (2, 4)}]} | |||
>>> az.plot_posterior(data, var_names=['mu', 'theta'], rope=rope) | |||
|
|||
Adding Coordinates(coords) for distributions selection |
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.
How about Using `coords` argument to plot only a subset of data
?
Note I have also edited the PR description to have the issue closed automatically when merging, you can read more about this feature here: https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword |
Did the changes and also added a point in the |
thanks! |
* Added Dataframe to InfData Example * Added coords argument examples in documentation * Updated coords argument example in docstring
Description
This PR is created to fix #1436
Checklist