-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
Strange behaviour of the legend of plot_trace when using coords #2320
Comments
I tried recreating this with more recent versions-
And got exactly the same plot outputs as you describe here. I can try and see if I can find out why this might be happening. |
The legend you see in the 2nd plot is always generated, but there is this bug that it is sometimes overwriten by the chain one. If the chain legend was moved to the right column with the trace itself instead of the densities I think this would be fixed. |
This only happens sometimes? I could try making that change you suggest though(moving the chain legend to the right column with the trace)- will create a PR if it works! |
Just linked a PR for this! Very small edit, but hope it helps |
Describe the bug
When using
plot_trace
with idata generated using a model with coordinates, the legend does not reflect the coordinate names but something completely different (the chains line types, even if chains are not plotted withcombined=True
), at least for the first variable plotted.To Reproduce
However, it seems to work fine for the second or later variables plotted.
Expected behavior
The expected behaviour when
combined=True
is the one shown for the second variable in the second example, where the legend shows "1, +", "1, -", etc.Additional context
Watermark:
The text was updated successfully, but these errors were encountered: