Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a65d45c

Browse files
committed
FIX: Better ref
1 parent 8ad8ccd commit a65d45c

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

examples/color/named_colors.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
List of named colors
44
====================
55
6-
This plots a list of the named colors supported in matplotlib. Note that
7-
:ref:`xkcd colors <xkcd-colors>` are supported as well, but are not listed here
8-
for brevity.
9-
6+
This plots a list of the named colors supported in matplotlib.
107
For more information on colors in matplotlib see
118
129
* the :doc:`/tutorials/colors/colors` tutorial;
@@ -104,15 +101,17 @@ def plot_colortable(colors, title, sort_colors=True, emptycols=0):
104101

105102
# sphinx_gallery_thumbnail_number = 3
106103
plot_colortable(mcolors.CSS4_COLORS, "CSS Colors")
107-
108-
# Optionally plot the XKCD colors (Caution: will produce large figure)
109-
# xkcd_fig = plot_colortable(mcolors.XKCD_COLORS, "XKCD Colors")
110-
# xkcd_fig.savefig("XKCD_Colors.png")
111-
112104
plt.show()
113105

114-
115106
#############################################################################
107+
# -----------
108+
# XKCD Colors
109+
# -----------
110+
# XKCD colors are supported, but they produce a large figure, so we skip them
111+
# for now. You can use the following code if desired::
112+
#
113+
# xkcd_fig = plot_colortable(mcolors.XKCD_COLORS, "XKCD Colors")
114+
# xkcd_fig.savefig("XKCD_Colors.png")
116115
#
117116
# .. admonition:: References
118117
#

0 commit comments

Comments
 (0)