@@ -330,7 +330,7 @@ def __init__(self, ax, label, valmin, valmax, valinit=0.5, valfmt=None,
330
330
closedmin = True , closedmax = True , slidermin = None ,
331
331
slidermax = None , dragging = True , valstep = None ,
332
332
orientation = 'horizontal' , * , initcolor = 'r' ,
333
- bkd_color = 'grey ' , handle_color_grabbed = None ,
333
+ track_color = 'lightgrey ' , handle_color_grabbed = None ,
334
334
handle_color_released = 'white' , handle_edgecolor = '.75' ,
335
335
handle_size = 10 , ** kwargs ):
336
336
"""
@@ -383,9 +383,9 @@ def __init__(self, ax, label, valmin, valmax, valinit=0.5, valfmt=None,
383
383
The color of the line at the *valinit* position. Set to ``'none'``
384
384
for no line.
385
385
386
- bkd_color : color, default: 'grey '
387
- The background color of the slider . The background is accesible for
388
- further styling via the *bkd * attribute.
386
+ track_color : color, default: 'lightgrey '
387
+ The color of the backgrond track . The track is accesible for
388
+ further styling via the *track * attribute.
389
389
390
390
handle_color_grabbed : color or None, default: None
391
391
The color of the circular slider handle when grabbed. If *None*
@@ -424,14 +424,14 @@ def __init__(self, ax, label, valmin, valmax, valinit=0.5, valfmt=None,
424
424
self .val = valinit
425
425
self .valinit = valinit
426
426
if orientation == 'vertical' :
427
- self .bkd = Rectangle ((.25 , 0 ), .5 , 1 , transform = ax .transAxes , facecolor = bkd_color )
428
- ax .add_patch (self .bkd )
427
+ self .track = Rectangle ((.25 , 0 ), .5 , 1 , transform = ax .transAxes , facecolor = track_color )
428
+ ax .add_patch (self .track )
429
429
self .poly = ax .axhspan (valmin , valinit , .25 , .75 , ** kwargs )
430
430
self .hline = ax .axhline (valinit , .25 , .75 , color = initcolor , lw = 1 )
431
431
handleXY = [[0.5 ], [valinit ]]
432
432
else :
433
- self .bkd = Rectangle ((0 , .25 ), 1 , .5 , transform = ax .transAxes , facecolor = bkd_color )
434
- ax .add_patch (self .bkd )
433
+ self .track = Rectangle ((0 , .25 ), 1 , .5 , transform = ax .transAxes , facecolor = track_color )
434
+ ax .add_patch (self .track )
435
435
self .poly = ax .axvspan (valmin , valinit , .25 , .75 , ** kwargs )
436
436
self .vline = ax .axvline (valinit , .25 , .75 , color = initcolor , lw = 1 )
437
437
handleXY = [[valinit ], [0.5 ]]
@@ -606,7 +606,7 @@ def __init__(
606
606
dragging = True ,
607
607
valstep = None ,
608
608
orientation = "horizontal" ,
609
- bkd_color = 'grey ' ,
609
+ track_color = 'lightgrey ' ,
610
610
handle_color_grabbed = None ,
611
611
handle_color_released = 'white' ,
612
612
handle_edgecolor = '.75' ,
@@ -651,9 +651,9 @@ def __init__(
651
651
orientation : {'horizontal', 'vertical'}, default: 'horizontal'
652
652
The orientation of the slider.
653
653
654
- bkd_color : color, default: 'grey '
655
- The background color of the slider . The background is accesible for
656
- further styling via the *bkd * attribute.
654
+ track_color : color, default: 'lightgrey '
655
+ The color of the backgrond track . The track is accesible for
656
+ further styling via the *track * attribute.
657
657
658
658
handle_color_grabbed : color or None, default: None
659
659
The color of the circular slider handles when grabbed. If *None*
@@ -689,20 +689,20 @@ def __init__(
689
689
self .val = valinit
690
690
self .valinit = valinit
691
691
if orientation == "vertical" :
692
- self .bkd = Rectangle ((.25 , 0 ), .5 , 2 ,
692
+ self .track = Rectangle ((.25 , 0 ), .5 , 2 ,
693
693
transform = ax .transAxes ,
694
- facecolor = bkd_color
694
+ facecolor = track_color
695
695
)
696
- ax .add_patch (self .bkd )
696
+ ax .add_patch (self .track )
697
697
self .poly = ax .axhspan (valinit [0 ], valinit [1 ], 0 , 1 , ** kwargs )
698
698
handleXY_1 = [.5 , valinit [0 ]]
699
699
handleXY_2 = [.5 , valinit [1 ]]
700
700
else :
701
- self .bkd = Rectangle ((0 , .25 ), 1 , .5 ,
701
+ self .track = Rectangle ((0 , .25 ), 1 , .5 ,
702
702
transform = ax .transAxes ,
703
- facecolor = bkd_color
703
+ facecolor = track_color
704
704
)
705
- ax .add_patch (self .bkd )
705
+ ax .add_patch (self .track )
706
706
self .poly = ax .axvspan (valinit [0 ], valinit [1 ], 0 , 1 , ** kwargs )
707
707
handleXY_1 = [valinit [0 ], .5 ]
708
708
handleXY_2 = [valinit [1 ], .5 ]
0 commit comments