From 16b2e0f9a274125c4819db62a93a4136cef347e4 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Fri, 20 Oct 2023 13:35:19 +0200 Subject: [PATCH] Backport PR #27153: Link xkcd color survey in named colors example --- 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")