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: