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
plot_trace with combined=True
to have alternating colors and labels
#837
Comments
@julian-pani Apologies on missing this issue for the last couple months. The traceplot lines should show up in different colors now. I checked the latest example to verify. Are you still having this issue? https://arviz-devs.github.io/arviz/examples/matplotlib/mpl_plot_trace.html |
I think it is still an issue, because
The solution would be to have:
|
use ax = az.plot_trace(data, var_names=('theta_t', 'theta'), compact=False, figsize = (20, 8)) |
Tell us about it
I'm very new at this, so not sure how much this problem is relevant for other users.
When using
plot_trace
withcombined=True
:the lines come up in the same color and without labels, so it's hard to differenciate between them
It would be great to have colors by default in the lines. And maybe an option to show labels
Something like:
Thoughts on implementation
Alternating colors - I don't see any reason not to have them.
For the labels - I understand that there could be thousands of lines, so maybe have a limit, to show something like the first 5 labels, or maybe add an argument to the method with
num_labels
(and then show "..." to indicate there are more not being shown)I've been looking at https://arviz-devs.github.io/arviz/_modules/arviz/plots/traceplot.html for a while but it's way above my league. I just don't understand what's going on.
Thanks for reading!
The text was updated successfully, but these errors were encountered: