Parameters ---------- ax : Axes The Axes to put the slider in. label : str Slider label. valmin : float The minimum value of the slider. valmax : float The maximum value of the slider. valini
(self, ax, label, valmin, valmax, *, valinit=0.5, valfmt=None,
closedmin=True, closedmax=True, slidermin=None,
slidermax=None, dragging=True, valstep=None,
orientation='horizontal', initcolor='r',
track_color='lightgrey', handle_style=None, **kwargs)
| 394 | """ |
| 395 | |
| 396 | def __init__(self, ax, label, valmin, valmax, *, valinit=0.5, valfmt=None, |
| 397 | closedmin=True, closedmax=True, slidermin=None, |
| 398 | slidermax=None, dragging=True, valstep=None, |
| 399 | orientation='horizontal', initcolor='r', |
| 400 | track_color='lightgrey', handle_style=None, **kwargs): |
| 401 | """ |
| 402 | Parameters |
| 403 | ---------- |
| 404 | ax : Axes |
| 405 | The Axes to put the slider in. |
| 406 | |
| 407 | label : str |
| 408 | Slider label. |
| 409 | |
| 410 | valmin : float |
| 411 | The minimum value of the slider. |
| 412 | |
| 413 | valmax : float |
| 414 | The maximum value of the slider. |
| 415 | |
| 416 | valinit : float, default: 0.5 |
| 417 | The slider initial position. |
| 418 | |
| 419 | valfmt : str, default: None |
| 420 | The way to format the slider value. If a string, it must be in %-format. |
| 421 | If a callable, it must have the signature ``valfmt(val: float) -> str``. |
| 422 | If None, a `.ScalarFormatter` is used. |
| 423 | |
| 424 | closedmin : bool, default: True |
| 425 | Whether the slider interval is closed on the bottom. |
| 426 | |
| 427 | closedmax : bool, default: True |
| 428 | Whether the slider interval is closed on the top. |
| 429 | |
| 430 | slidermin : Slider, default: None |
| 431 | Do not allow the current slider to have a value less than |
| 432 | the value of the Slider *slidermin*. |
| 433 | |
| 434 | slidermax : Slider, default: None |
| 435 | Do not allow the current slider to have a value greater than |
| 436 | the value of the Slider *slidermax*. |
| 437 | |
| 438 | dragging : bool, default: True |
| 439 | If True the slider can be dragged by the mouse. |
| 440 | |
| 441 | valstep : float or array-like, default: None |
| 442 | If a float, the slider will snap to multiples of *valstep*. |
| 443 | If an array the slider will snap to the values in the array. |
| 444 | |
| 445 | orientation : {'horizontal', 'vertical'}, default: 'horizontal' |
| 446 | The orientation of the slider. |
| 447 | |
| 448 | initcolor : :mpltype:`color`, default: 'r' |
| 449 | The color of the line at the *valinit* position. Set to ``'none'`` |
| 450 | for no line. |
| 451 | |
| 452 | track_color : :mpltype:`color`, default: 'lightgrey' |
| 453 | The color of the background track. The track is accessible for |
nothing calls this directly
no test coverage detected