From 14e6beb05ce3330c5ff212c2b925527805b34ed2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Krassowski?= <5832902+krassowski@users.noreply.github.com> Date: Fri, 21 Jun 2024 10:39:57 +0100 Subject: [PATCH 1/2] Fix outdated documentation of `scale_color_cmap` --- plotnine/scales/scale_color.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plotnine/scales/scale_color.py b/plotnine/scales/scale_color.py index 93c6b7c6b..5a88f7880 100644 --- a/plotnine/scales/scale_color.py +++ b/plotnine/scales/scale_color.py @@ -454,8 +454,8 @@ class scale_color_cmap(scale_continuous): cmap_name : A standard Matplotlib colormap name. The default is `viridis`. For the list of names checkout the output - of `matplotlib.cm.cmap_d.keys()` or see the - `documentation `_. + of `matplotlib.colormaps()` or see the + [documentation](http://matplotlib.org/users/colormaps.html). {superclass_parameters} na_value : str, default="#7F7F7F" Color of missing values. From 19d7dd182818e16fa24d771e212d96e0ed4e6138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Krassowski?= <5832902+krassowski@users.noreply.github.com> Date: Fri, 21 Jun 2024 10:45:27 +0100 Subject: [PATCH 2/2] Update the link to colormaps documentation --- plotnine/scales/scale_color.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plotnine/scales/scale_color.py b/plotnine/scales/scale_color.py index 5a88f7880..690446cb4 100644 --- a/plotnine/scales/scale_color.py +++ b/plotnine/scales/scale_color.py @@ -455,7 +455,7 @@ class scale_color_cmap(scale_continuous): A standard Matplotlib colormap name. The default is `viridis`. For the list of names checkout the output of `matplotlib.colormaps()` or see the - [documentation](http://matplotlib.org/users/colormaps.html). + [documentation](https://matplotlib.org/stable/users/explain/colors/colormaps.html). {superclass_parameters} na_value : str, default="#7F7F7F" Color of missing values.