Skip to content

Commit

Permalink
use keyword arg, compatible with newer matplotlib (#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
shoaib42 authored Oct 10, 2023
1 parent 99de7d7 commit 2a63574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymoo/visualization/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def plot_axes_lines(ax, X, extend_factor=1.0, **kwargs):


def plot_polygon(ax, x, **kwargs):
ax.add_collection(PatchCollection([patches.Polygon(x, True)], **kwargs))
ax.add_collection(PatchCollection([patches.Polygon(x, closed=True)], **kwargs))


def plot_axis_labels(ax, endpoints, labels, margin=0.035, size='small', **kwargs):
Expand Down

0 comments on commit 2a63574

Please sign in to comment.