From de53d31c600a7951f9c8a1703c9f793fea700cb0 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(