@@ -22,8 +22,9 @@ def plot_lightness(saveplot=False):
22
22
x = np .linspace (0.0 , 1.0 , 256 )
23
23
locs = [] # locations for text labels
24
24
25
- fig = plt .figure (figsize = (16 , 6 ))
25
+ fig = plt .figure (figsize = (16 , 5 ))
26
26
ax = fig .add_subplot (111 )
27
+ fig .subplots_adjust (left = 0.03 , right = 0.97 )
27
28
ax .set_xlim (- 0.1 , len (cm .cmap_d )/ 2. + 0.1 )
28
29
ax .set_ylim (0 , 100 )
29
30
ax .set_xlabel ('Lightness for each colormap' , fontsize = 14 )
@@ -38,9 +39,9 @@ def plot_lightness(saveplot=False):
38
39
lab = cspace_converter ("sRGB1" , "CAM02-UCS" )(rgb )
39
40
L = lab [0 , :, 0 ]
40
41
if L [- 1 ] > L [0 ]:
41
- ax .scatter (x + j * dc , L , c = x , cmap = cmap , s = 300 , linewidths = 0. )
42
+ ax .scatter (x + j * dc , L , c = x , cmap = cmap , s = 200 , linewidths = 0. )
42
43
else :
43
- ax .scatter (x + j * dc , L [::- 1 ], c = x [::- 1 ], cmap = cmap , s = 300 , linewidths = 0. )
44
+ ax .scatter (x + j * dc , L [::- 1 ], c = x [::- 1 ], cmap = cmap , s = 200 , linewidths = 0. )
44
45
locs .append (x [- 1 ]+ j * dc ) # store locations for colormap labels
45
46
46
47
# Set up labels for colormaps
0 commit comments