You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/users/plotting/colormaps/lightness.py
+6-8Lines changed: 6 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,11 @@
2
2
For each colormap, plot the lightness parameter L* from CIELAB colorspace along the y axis vs index through the colormap. Colormaps are examined in categories as in the original matplotlib gallery of colormaps.
3
3
'''
4
4
5
-
fromskimageimportio, color
5
+
fromskimageimportcolor
6
6
importnumpyasnp
7
7
importmatplotlib.pyplotasplt
8
8
frommatplotlibimportcm
9
9
importmatplotlibasmpl
10
-
importpdb
11
-
fromscipy.optimizeimportcurve_fit
12
10
13
11
mpl.rcParams.update({'font.size': 14})
14
12
mpl.rcParams['font.sans-serif'] ='Arev Sans, Bitstream Vera Sans, Lucida Grande, Verdana, Geneva, Lucid, Helvetica, Avant Garde, sans-serif'
@@ -39,7 +37,7 @@
39
37
'gnuplot', 'gnuplot2', 'ocean', 'rainbow',
40
38
'terrain', 'flag', 'prism'])]
41
39
42
-
# indices to step through colormap
40
+
# indices to step through colormap
43
41
x=np.linspace(0.0, 1.0, 100)
44
42
45
43
# Do plot
@@ -49,9 +47,9 @@
49
47
dsub=5# number of colormaps per subplot
50
48
ifcmap_category=='Diverging': # because has 13 colormaps
0 commit comments