diff --git a/pymoo/core/plot.py b/pymoo/core/plot.py index 547723d1..22094f82 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):