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 kwarg to avoid alternate row shading with az.plot_forest #2243

Open
drbenvincent opened this issue May 11, 2023 · 0 comments
Open

Add kwarg to avoid alternate row shading with az.plot_forest #2243

drbenvincent opened this issue May 11, 2023 · 0 comments

Comments

@drbenvincent
Copy link
Contributor

The default when plotting multiple models with plot_forest is to have alternate row shading, like in the left hand plot here
screenshot_2023-05-10_at_15 07 53_720

I agree that this is good default behaviour, but in some situations it adds clutter. @ColCarroll mentioned that you can manually remove it with

ret = az.plot_forest(...); 
for p in ret[0].patches:
  p.set_color('white')

but it would be great if there were a kwarg, such as row_shading or alternate_row_shading which is True by default, but turns it off when setting it to False.

In this case, it resulted in what I think is a superior plot.

Screenshot 2023-05-11 at 08 56 00

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