diff --git a/arviz/plots/kdeplot.py b/arviz/plots/kdeplot.py index 66c6d3e06f..3976ed86c1 100644 --- a/arviz/plots/kdeplot.py +++ b/arviz/plots/kdeplot.py @@ -226,7 +226,7 @@ def plot_kde( >>> az.plot_kde( ... mu_posterior, values2=tau_posterior, - ... contour_kwargs={"levels":3}, contourf_kwargs={"levels":3} + ... contour_kwargs={"levels":3}, contourf_kwargs={"levels":3} ... ); Plot 2d contour KDE with 30%, 60% and 90% HDI contours. @@ -279,7 +279,6 @@ def plot_kde( contour_levels = _find_hdi_contours(density, hdi_probs) contour_levels.sort() - contour_level_list = [0] + list(contour_levels) + [density.max()] # Add keyword arguments to contour, contourf