From a1868d4ec4e7d4487ef24ee2034339c399c40097 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Fri, 20 Oct 2023 11:47:49 +0200 Subject: [PATCH] Link xkcd color survey in named colors example and slightly reword their description --- galleries/examples/color/named_colors.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/galleries/examples/color/named_colors.py b/galleries/examples/color/named_colors.py index 0181e0f06742..9ae4ec4957f3 100644 --- a/galleries/examples/color/named_colors.py +++ b/galleries/examples/color/named_colors.py @@ -101,8 +101,10 @@ def plot_colortable(colors, *, ncols=4, sort_colors=True): # ----------- # XKCD Colors # ----------- -# XKCD colors are supported, but they produce a large figure, so we skip them -# for now. You can use the following code if desired:: +# Matplotlib supports colors from the +# `xkcd color survey `_, e.g. ``"xkcd:sky blue"``. Since +# this contains almost 1000 colors, a figure of this would be very large and is thus +# omitted here. You can use the following code to generate the overview yourself :: # # xkcd_fig = plot_colortable(mcolors.XKCD_COLORS) # xkcd_fig.savefig("XKCD_Colors.png")