8000 Coords kwarg added to plot_autocorr function by lucifer4073 · Pull Request #2404 · arviz-devs/arviz · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Coords kwarg added to plot_autocorr function #2404

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

Merged
merged 3 commits into from
May 27, 2025

Conversation

lucifer4073
Copy link
Contributor
@lucifer4073 lucifer4073 commented Dec 20, 2024

Fixes #2288

Added the coords keyword argument to the plot_autocorr function in ArviZ. Used to specify variable names to be plotted. Made it consistent with other plotting functions such as plot_forest and plot_trace.

Example usage:

axes = az.plot_autocorr(
   data,
   var_names=["mu", "theta"],
   coords={"school": ["Deerfield", "Hotchkiss"]},
   backend="matplotlib"
8000

)

Other points:

  • Test case added -> test_plot_autocorr_coord
  • Example for plot_autocorr modifed to show utility of the coords keyword.

📚 Documentation preview 📚: https://arviz--2404.org.readthedocs.build/en/2404/

Copy link
codecov bot commented Dec 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.85%. Comparing base (1d8c010) to head (cd22fc4).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2404   +/-   ##
=======================================
  Coverage   86.85%   86.85%           
=======================================
  Files         124      124           
  Lines       13007    13009    +2     
=======================================
+ Hits        11297    11299    +2     
  Misses       1710     1710           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@lucifer4073
Copy link
Contributor Author
lucifer4073 commented Feb 23, 2025

merge conflict has been resolved

Copy link
Member
@OriolAbril OriolAbril left a comment

Choose a reason for hiding this comment

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

Thanks for the PR

@OriolAbril OriolAbril merged commit 4743beb into arviz-devs:main May 27, 2025
12 checks passed
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.

Add the "coords" kwarg to plot_autocorr
2 participants
0