'AxesSubplot' object has no attribute 'sharey' on Colab #2214
Answered
by
OriolAbril
jecampagne
asked this question in
Q&A
-
Does someone else experience trace on simple arviz exemple see nb on Colab import arviz as az #0.12.1
import numpy as np
# This Plot is ok
data = {'a':np.random.normal(size=(100,)),
"b":np.random.normal(size=(100,)),
}
az.plot_pair(
data,
kind="kde",
kde_kwargs={
"hdi_probs": [0.393, 0.865, 0.989], # Plot 1sigma, 2sigma, 3sigma HDI contours
"contourf_kwargs": {"cmap": "Reds"},
},
marginal_kwargs={"color": "Black"},
marginals=True,
textsize=30,
);
#But here it crashes
data = {'a':np.random.normal(size=(100,)),
"b":np.random.normal(size=(100,)),
"c":np.random.normal(size=(100,)),
}
az.plot_pair(
data,
kind="kde",
kde_kwargs={
"hdi_probs": [0.393, 0.865, 0.989], # Plot 1sigma, 2sigma, 3sigma HDI contours
"contourf_kwargs": {"cmap": "Reds"},
},
marginal_kwargs={"color": "Black"},
marginals=True,
textsize=30,
); The crash is
If someone has a workaround that would be nice. (I have googled and not found a solution yet). Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
OriolAbril
Feb 28, 2023
Replies: 1 comment 1 reply
-
I can't seem to reproduce the issue with the notebook you shared. The default versions might have been updated. Can you try again with default libraries? And making sure both arviz and matplotlib are on their latest versions? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
OriolAbril
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can't seem to reproduce the issue with the notebook you shared. The default versions might have been updated.
Can you try again with default libraries? And making sure both arviz and matplotlib are on their latest versions?