From a3bb268cf2e36e0c346a26596e3c15b38ac63f98 Mon Sep 17 00:00:00 2001 From: "Juan I. Ortiz" Date: Thu, 23 Jan 2025 17:30:32 +0100 Subject: [PATCH] Contour constructor changed in OT 1.4 --- othdrplot/high_density_region_algorithm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)