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

Legend labels in plot_ppc don't update to match 'prior' or 'posterior' group selection #1966

Closed
jedludlow opened this issue Jan 19, 2022 · 0 comments

Comments

@jedludlow
Copy link
Contributor

Describe the bug
When calling plot_ppc using the matplotlib backend, the legend labels for the various data series in the plot do not update to reflect prior or posterior group. In many cases they are hard-coded to "Posterior ...".

To Reproduce
az.plot_ppc(prior_pred, kind='scatter', mean=True, group='prior'). The legend entries will still reflect "Posterior..." even though prior was selected.

Expected behavior
Legend entries should track the selected group.

Additional context
ArviZ v0.11.4 at a67d81c. I will submit a pull request with a solution.

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

No branches or pull requests

1 participant