MCPcopy
hub / github.com/matplotlib/matplotlib / __init__

Method __init__

lib/matplotlib/widgets.py:667–851  ·  view source on GitHub ↗

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=None,
        valfmt=None,
        closedmin=True,
        closedmax=True,
        dragging=True,
        valstep=None,
        orientation="horizontal",
        track_color='lightgrey',
        handle_style=None,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

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
710 closedmin : bool, default: True
711 Whether the slider interval is closed on the bottom.
712
713 closedmax : bool, default: True
714 Whether the slider interval is closed on the top.
715
716 dragging : bool, default: True
717 If True the slider can be dragged by the mouse.
718
719 valstep : float, default: None
720 If given, the slider will snap to multiples of *valstep*.
721
722 orientation : {'horizontal', 'vertical'}, default: 'horizontal'
723 The orientation of the slider.
724

Callers

nothing calls this directly

Calls 15

_value_in_boundsMethod · 0.95
_formatMethod · 0.95
set_valMethod · 0.95
RectangleClass · 0.85
PolygonClass · 0.85
add_patchMethod · 0.80
__init__Method · 0.45
get_yaxis_transformMethod · 0.45
get_xaxis_transformMethod · 0.45
set_transformMethod · 0.45

Tested by

no test coverage detected