Skip to content

Commit 4ba10e8

Browse files
committed
Link xkcd color survey in named colors example
and slightly reword their description
1 parent b1857a1 commit 4ba10e8

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, 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)