Skip to content

Commit

Permalink
Fixed the Plot Issue (#593)
Browse files Browse the repository at this point in the history
When using the Scatter() function, the plot would fail because of a wrong function call. Fixed that in the plot.py
  • Loading branch information
imustitanveer authored May 27, 2024
1 parent 831d94f commit 629666d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymoo/core/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __init__(self,

# the colormap or the color lists to use
if isinstance(cmap, str):
self.cmap = matplotlib.cm.get_cmap(cmap)
self.cmap = matplotlib.pyplot.get_cmap(cmap)
else:
self.cmap = cmap
if isinstance(self.cmap, ListedColormap):
Expand Down

0 comments on commit 629666d

Please sign in to comment.