diff --git a/CHANGELOG.md b/CHANGELOG.md index e7120fe1ec..1e210bb509 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ ### Maintenance and fixes +* Added a note on `plot_pair` when trying to use `plot_kde` on `InferenceData` + objects. (#1218) + ### Deprecation ### Documentation diff --git a/arviz/plots/kdeplot.py b/arviz/plots/kdeplot.py index 9e796d9252..99f0b07950 100644 --- a/arviz/plots/kdeplot.py +++ b/arviz/plots/kdeplot.py @@ -182,7 +182,10 @@ def plot_kde( "or plot_pair instead of plot_kde" ) if isinstance(values, InferenceData): - raise ValueError(" Inference Data object detected. Use plot_posterior instead of plot_kde") + raise ValueError( + " Inference Data object detected. Use plot_posterior " + "or plot_pair instead of plot_kde" + ) if values2 is None: density, lower, upper = _fast_kde(values, cumulative, bw)