File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ def plot_color_gradients(cmap_category, cmap_list, nrows):
225
225
plt .show ()
226
226
227
227
###############################################################################
228
- # Lightness of matplotlib colormaps
228
+ # Lightness of Matplotlib colormaps
229
229
# =================================
230
230
#
231
231
# Here we examine the lightness values of the matplotlib colormaps.
@@ -308,10 +308,9 @@ def plot_color_gradients(cmap_category, cmap_list, nrows):
308
308
formatter = mpl .ticker .FixedFormatter (cmap_list [i * dsub :(i + 1 )* dsub ])
309
309
ax .xaxis .set_major_formatter (formatter )
310
310
ax .xaxis .set_tick_params (rotation = 50 )
311
+ ax .set_ylabel ('Lightness $L^*$' , fontsize = 12 )
311
312
312
313
ax .set_xlabel (cmap_category + ' colormaps' , fontsize = 14 )
313
- fig .text (0.0 , 0.55 , 'Lightness $L^*$' , fontsize = 12 ,
314
- transform = fig .transFigure , rotation = 90 )
315
314
316
315
fig .tight_layout (h_pad = 0.0 , pad = 1.5 )
317
316
plt .show ()
You can’t perform that action at this time.
0 commit comments