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

plot_pair axis labels no longer include coords #1531

Closed
lhelleckes opened this issue Feb 2, 2021 · 2 comments · Fixed by #1533
Closed

plot_pair axis labels no longer include coords #1531

lhelleckes opened this issue Feb 2, 2021 · 2 comments · Fixed by #1533

Comments

@lhelleckes
Copy link

Describe the bug
Using plot_pair with a selection of coords, I got a plot where the axis labels only show var_names, so different coords get the same label.

To Reproduce

test_idata = arviz.from_dict(
    posterior = dict(a=numpy.random.rand(1, 10, 3), b=numpy.random.rand(1 ,10, 1)),
    dims={'a':['a_dim',]},
    coords=dict(a_dim=['test_A', 'test_B', 'test_C'])
)
arviz.plot_pair(
    test_idata, 
    coords=dict(a_dim=['test_A', 'test_B']),
    kind='kde'
);

grafik

Expected behavior
Axis labels should also include the coords to be unique (in this case a_test_A or similar).

Additional context
arviz_version : 0.11.0

@OriolAbril
Copy link
Member

I will look into it asap. This is completely unexpected :/. Does this already happen with 0.11 or on development version? (both will show 0.11 as version)

@lhelleckes
Copy link
Author

I tested it with the 0.11 release. Thanks for looking into it!

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 a pull request may close this issue.

2 participants