Skip to content

Commit a233549

Browse files
committed
DOC: Don't print colormaps in tutorials.
They don't have any useful representation, and the object pointer makes the docs unreproducible.
1 parent c576358 commit a233549

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tutorials/colors/colormap-manipulation.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
from matplotlib.colors import ListedColormap, LinearSegmentedColormap
3838

3939
viridis = cm.get_cmap('viridis', 8)
40-
print(viridis)
4140

4241
##############################################################################
4342
# The object ``viridis`` is a callable, that when passed a float between
@@ -74,7 +73,6 @@
7473
# float array between 0 and 1.
7574

7675
copper = cm.get_cmap('copper', 8)
77-
print(copper)
7876

7977
print('copper(range(8))', copper(range(8)))
8078
print('copper(np.linspace(0, 1, 8))', copper(np.linspace(0, 1, 8)))

0 commit comments

Comments
 (0)