From 629666d338fdebb61d54c47264c2a18beab12010 Mon Sep 17 00:00:00 2001 From: "Mustassum \"Musti\" Tanvir" <151477366+imustitanveer@users.noreply.github.com> Date: Mon, 27 May 2024 21:32:28 +0500 Subject: [PATCH] Fixed the Plot Issue (#593) When using the Scatter() function, the plot would fail because of a wrong function call. Fixed that in the plot.py --- pymoo/core/plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymoo/core/plot.py b/pymoo/core/plot.py index 547723d16..22094f82a 100644 --- a/pymoo/core/plot.py +++ b/pymoo/core/plot.py @@ -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):