Skip to content

Commit

Permalink
FIX: adjust call to matplotlib
Browse files Browse the repository at this point in the history
Since matplotlib>= 3.8 fails with existing solution
  • Loading branch information
jcrivenaes committed Sep 24, 2023
1 parent 1cac318 commit de53d31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/xtgeo/plot/grid3d_slice.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit de53d31

Please sign in to comment.