From 4ebbfde7291b86c7f0455a56301869d3f18452ce Mon Sep 17 00:00:00 2001 From: Ray Osborn Date: Mon, 30 Oct 2023 20:57:37 -0500 Subject: [PATCH] Fix initialization of MPL Polygon Matplotlib now requires the 'closed' argument to be keyword only. --- src/nexpy/gui/widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nexpy/gui/widgets.py b/src/nexpy/gui/widgets.py index 9b9ae4ba..8116c4fc 100644 --- a/src/nexpy/gui/widgets.py +++ b/src/nexpy/gui/widgets.py @@ -1350,7 +1350,7 @@ def update(self, x, y): class NXpolygon(NXpatch): def __init__(self, xy, closed=True, plotview=None, **opts): - shape = Polygon(xy, closed, **opts) + shape = Polygon(xy, closed=closed, **opts) if 'linewidth' not in opts: shape.set_linewidth(1.0) if 'color' not in opts and 'facecolor' not in opts: