diff --git a/othdrplot/high_density_region_algorithm.py b/othdrplot/high_density_region_algorithm.py index 48b8c69..028ba22 100644 --- a/othdrplot/high_density_region_algorithm.py +++ b/othdrplot/high_density_region_algorithm.py @@ -249,8 +249,10 @@ def draw(self, drawInliers=False, drawOutliers=True): ] contour = ot.Contour( - xx, yy, data, self.pvalues, ot.Description(labels) + xx, yy, data ) + contour.setLevels(self.pvalues) + contour.setLabels(ot.Description(labels)) contour.setColor(self.contour_color) graph.add(contour)