From 0b9f17cbb87339b26494607f6c307a7da1e18636 Mon Sep 17 00:00:00 2001 From: artufaro Date: Fri, 6 Dec 2019 10:11:59 +0100 Subject: [PATCH] a small bug in set_colormap --- mpl_article_style/style.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpl_article_style/style.py b/mpl_article_style/style.py index 6aafd36..0e88b13 100644 --- a/mpl_article_style/style.py +++ b/mpl_article_style/style.py @@ -49,7 +49,7 @@ def set_palette(palette, lighten=0.4): def set_colormap(cmap): - plt.register_cmap(cmap) + plt.register_cmap(name=cmap.name, cmap=cmap) plt.rcParams['image.cmap'] = cmap.name