@@ -3365,7 +3365,7 @@ def _draw_bars(
3365
3365
if imap == 0 :
3366
3366
ax .set_title (cat , weight = 'bold' )
3367
3367
nbars += len (names )
3368
- return fig
3368
+ return fig , axs
3369
3369
3370
3370
3371
3371
def show_channels (
@@ -3485,13 +3485,14 @@ def show_channels(
3485
3485
)
3486
3486
# Colorbar on the bottom
3487
3487
for cmap in cmaps :
3488
- fig .colorbar (cmap ,
3489
- loc = 'b' , span = (2 , 5 ),
3490
- locator = 'null' , label = cmap .name , labelweight = 'bold' )
3491
- return fig
3488
+ fig .colorbar (
3489
+ cmap , loc = 'b' , span = (2 , 5 ),
3490
+ locator = 'null' , label = cmap .name , labelweight = 'bold'
3491
+ )
3492
+ return fig , axs
3492
3493
3493
3494
3494
- def show_colorspaces (luminance = None , saturation = None , hue = None , axwidth = 2 ):
3495
+ def show_colorspaces (* , luminance = None , saturation = None , hue = None , axwidth = 2 ):
3495
3496
"""
3496
3497
Generate hue-saturation, hue-luminance, and luminance-saturation
3497
3498
cross-sections for the HCL, HSL, and HPL colorspaces.
@@ -3570,9 +3571,9 @@ def show_colorspaces(luminance=None, saturation=None, hue=None, axwidth=2):
3570
3571
xlabel = xlabel , ylabel = ylabel , suptitle = suptitle ,
3571
3572
grid = False , xtickminor = False , ytickminor = False ,
3572
3573
xlocator = xloc , ylocator = yloc , facecolor = 'k' ,
3573
- title = space .upper (), titleweight = 'bold'
3574
+ title = space .upper (),
3574
3575
)
3575
- return fig
3576
+ return fig , axs
3576
3577
3577
3578
3578
3579
def _color_filter (hcl , ihue , nhues , minsat ):
@@ -3949,7 +3950,7 @@ def show_fonts(
3949
3950
stretch = stretch , style = style , weight = weight ,
3950
3951
ha = 'left' , va = 'center'
3951
3952
)
3952
- return fig
3953
+ return fig , axs
3953
3954
3954
3955
3955
3956
# Convert colormaps that *should* be LinearSegmented from Listed
0 commit comments