Skip to content

Commit

Permalink
Fix initialization of MPL Polygon
Browse files Browse the repository at this point in the history
Matplotlib now requires the 'closed' argument to be keyword only.
  • Loading branch information
rayosborn committed Oct 31, 2023
1 parent 94b12da commit 4ebbfde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nexpy/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4ebbfde

Please sign in to comment.