A slider representing a range of floating point values. Defines the min and max of the range via the *val* attribute as a tuple of (min, max). Create a slider that defines a range contained within [*valmin*, *valmax*] in Axes *ax*. For the slider to remain responsive you must maint
| 650 | |
| 651 | |
| 652 | class RangeSlider(SliderBase): |
| 653 | """ |
| 654 | A slider representing a range of floating point values. Defines the min and |
| 655 | max of the range via the *val* attribute as a tuple of (min, max). |
| 656 | |
| 657 | Create a slider that defines a range contained within [*valmin*, *valmax*] |
| 658 | in Axes *ax*. For the slider to remain responsive you must maintain a |
| 659 | reference to it. Call :meth:`on_changed` to connect to the slider event. |
| 660 | |
| 661 | Attributes |
| 662 | ---------- |
| 663 | val : tuple of float |
| 664 | Slider value. |
| 665 | """ |
| 666 | |
| 667 | def __init__( |
| 668 | self, |
| 669 | ax, |
| 670 | label, |
| 671 | valmin, |
| 672 | valmax, |
| 673 | *, |
| 674 | valinit=None, |
| 675 | valfmt=None, |
| 676 | closedmin=True, |
| 677 | closedmax=True, |
| 678 | dragging=True, |
| 679 | valstep=None, |
| 680 | orientation="horizontal", |
| 681 | track_color='lightgrey', |
| 682 | handle_style=None, |
| 683 | **kwargs, |
| 684 | ): |
| 685 | """ |
| 686 | Parameters |
| 687 | ---------- |
| 688 | ax : Axes |
| 689 | The Axes to put the slider in. |
| 690 | |
| 691 | label : str |
| 692 | Slider label. |
| 693 | |
| 694 | valmin : float |
| 695 | The minimum value of the slider. |
| 696 | |
| 697 | valmax : float |
| 698 | The maximum value of the slider. |
| 699 | |
| 700 | valinit : tuple of float or None, default: None |
| 701 | The initial positions of the slider. If None the initial positions |
| 702 | will be at the 25th and 75th percentiles of the range. |
| 703 | |
| 704 | valfmt : str or callable, default: None |
| 705 | The way to format the range's minimal and maximal values. If a |
| 706 | string, it must be in %-format. If a callable, it must have the |
| 707 | signature ``valfmt(val: float) -> str``. If None, a |
| 708 | `.ScalarFormatter` is used. |
| 709 |
no outgoing calls
no test coverage detected
searching dependent graphs…