pair plot with 2 variables looks different than >2 #2133
Replies: 1 comment
-
It is currently not possible to avoid rotating the marginals when there are only two of them. It is hardcoded in https://github.com/arviz-devs/arviz/blob/main/arviz/plots/backends/matplotlib/pairplot.py#L162-L171 in case you'd be interested in sending a PR for this. I believe I can help with the second question though. When using
I imagine your code didn't work initially because you were giving a 2d array but it had
so when you do
and plots will work. Personally, I would recommend defining the variable name yourself and converting explicitly, for example with `from_dict({"var": data}) |
Beta Was this translation helpful? Give feedback.
-
Hello,
Here is a snippet
gives
while with
the
pair_plot
looks likeQ1: I would like to get the "dim=3" drawing of the marginals for the "dim=2" use case, is-it possible?
Q2: As a side remark, I do not manage to use az.convert_XYZ function to get something working for az.pair_plot it is wht I have used a home-made "data" generator. It would be nice if there exists a simple example to get it right that could be nice.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions