From 0c97a5a4a078eea2280209dcfe1ad035eae40bdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20C=2E=20Riven=C3=A6s?= Date: Sun, 24 Sep 2023 20:05:28 +0200 Subject: [PATCH] FIX: adjust call to matplotlib Since matplotlib>= 3.8 fails with existing solution --- src/xtgeo/plot/grid3d_slice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xtgeo/plot/grid3d_slice.py b/src/xtgeo/plot/grid3d_slice.py index 1452bdb07..8a4a38038 100644 --- a/src/xtgeo/plot/grid3d_slice.py +++ b/src/xtgeo/plot/grid3d_slice.py @@ -2,8 +2,8 @@ import matplotlib.pyplot as plt -from matplotlib.patches import Polygon from matplotlib.collections import PatchCollection +from matplotlib.patches import Polygon from xtgeo.common import XTGeoDialog from xtgeo.plot.baseplot import BasePlot @@ -175,7 +175,7 @@ def _plot_layer(self): for pos in range(len(ibn)): nppol = xyc[pos, :, :] if nppol.mean() > 0.0: - polygon = Polygon(nppol, True) + polygon = Polygon(nppol) patches.append(polygon) patchcoll = PatchCollection(