A slider representing a floating point range. Create a slider from *valmin* to *valmax* in Axes *ax*. For the slider to remain responsive you must maintain a reference to it. Call :meth:`on_changed` to connect to the slider event. Attributes ---------- val : float
| 380 | |
| 381 | |
| 382 | class Slider(SliderBase): |
| 383 | """ |
| 384 | A slider representing a floating point range. |
| 385 | |
| 386 | Create a slider from *valmin* to *valmax* in Axes *ax*. For the slider to |
| 387 | remain responsive you must maintain a reference to it. Call |
| 388 | :meth:`on_changed` to connect to the slider event. |
| 389 | |
| 390 | Attributes |
| 391 | ---------- |
| 392 | val : float |
| 393 | Slider value. |
| 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…