Skip to content
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 plot_trace #1

Merged
merged 4 commits into from
Oct 13, 2023
Merged

add plot_trace #1

merged 4 commits into from
Oct 13, 2023

Conversation

aloctavodia
Copy link
Contributor

@aloctavodia aloctavodia commented Oct 2, 2023

Closes #13

This follows the decision that plot_trace will be a plot without the densities (kde or histograms).

I started with this example because it seems simple enough to get familiar with the code. Please let me know what I am doing wrong.

Also not sure what should I do to add divergences, given that divergences are defined in a separate group.

This is how the default plots look like for the centered_eight dataset

default

and this is with some customization

plot_trace(post, var_names=["mu", "tau"],
sample_dims=["draw"],
pc_kwargs={"plot_grid_kws": {"figsize": (12, 7), "sharey":"row"}, "col_wrap":4})

customized


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

@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.

Thanks for integrating Codecov - We've got you covered ☂️

@OriolAbril
Copy link
Member

Also not sure what should I do to add divergences, given that divergences are defined in a separate group.

There is no clear way to go about that yet. I think the clearest way to go about it is allowing to define different data when looping/facetting than when plotting

@aloctavodia
Copy link
Contributor Author

Is this ok to merge? Or what else should I do?

@OriolAbril OriolAbril merged commit 2e9f219 into main Oct 13, 2023
3 checks passed
@OriolAbril OriolAbril deleted the traceplot branch October 13, 2023 18:23
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 plot_trace
3 participants