Skip to content

Commit d61da05

Browse files
timhoffmmeeseeksmachine
authored andcommitted
Backport PR #27153: Link xkcd color survey in named colors example
1 parent 93d0f71 commit d61da05

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

galleries/examples/color/named_colors.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@ def plot_colortable(colors, *, ncols=4, sort_colors=True):
101101
# -----------
102102
# XKCD Colors
103103
# -----------
104-
# XKCD colors are supported, but they produce a large figure, so we skip them
105-
# for now. You can use the following code if desired::
104+
# Matplotlib supports colors from the
105+
# `xkcd color survey <https://xkcd.com/color/rgb/>`_, e.g. ``"xkcd:sky blue"``. Since
106+
# this contains almost 1000 colors, a figure of this would be very large and is thus
107+
# omitted here. You can use the following code to generate the overview yourself ::
106108
#
107109
# xkcd_fig = plot_colortable(mcolors.XKCD_COLORS)
108110
# xkcd_fig.savefig("XKCD_Colors.png")

0 commit comments

Comments
 (0)