@@ -22,8 +22,9 @@ def plot_lightness(saveplot=False):
2222 x = np .linspace (0.0 , 1.0 , 256 )
2323 locs = [] # locations for text labels
2424
25- fig = plt .figure (figsize = (16 , 6 ))
25+ fig = plt .figure (figsize = (16 , 5 ))
2626 ax = fig .add_subplot (111 )
27+ fig .subplots_adjust (left = 0.03 , right = 0.97 )
2728 ax .set_xlim (- 0.1 , len (cm .cmap_d )/ 2. + 0.1 )
2829 ax .set_ylim (0 , 100 )
2930 ax .set_xlabel ('Lightness for each colormap' , fontsize = 14 )
@@ -38,9 +39,9 @@ def plot_lightness(saveplot=False):
3839 lab = cspace_converter ("sRGB1" , "CAM02-UCS" )(rgb )
3940 L = lab [0 , :, 0 ]
4041 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. )
4243 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. )
4445 locs .append (x [- 1 ]+ j * dc ) # store locations for colormap labels
4546
4647 # Set up labels for colormaps
0 commit comments