__init__(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)
Additional kwargs are passed on to self.poly
which is the ~matplotlib.patches.Polygon
that draws the slider knob. See the .Polygon
documentation for valid property names ( facecolor
, edgecolor
, alpha
, etc.).
The Axes to put the slider in.
Slider label.
The minimum value of the slider.
The maximum value of the slider.
The slider initial position.
%-format string used to format the slider value. If None, a .ScalarFormatter
is used instead.
Whether the slider interval is closed on the bottom.
Whether the slider interval is closed on the top.
Do not allow the current slider to have a value less than the value of the Slider slidermin.
Do not allow the current slider to have a value greater than the value of the Slider slidermax.
If True the slider can be dragged by the mouse.
If a float, the slider will snap to multiples of valstep. If an array the slider will snap to the values in the array.
The orientation of the slider.
The color of the line at the valinit position. Set to 'none'
for no line.
The color of the background track. The track is accessible for further styling via the track attribute.
Properties of the slider handle. Default values are
========= ===== ======= ======================================== Key Value Default Description ========= ===== ======= ======================================== facecolor color 'white' The facecolor of the slider handle. edgecolor color '.75' The edgecolor of the slider handle. size int 10 The size of the slider handle in points. ========= ===== ======= ========================================
Other values will be transformed as marker{foo} and passed to the ~.Line2D
constructor. e.g. handle_style = {'style'='x'}
will result in markerstyle = 'x'
.
Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.
Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)
SVG is more flexible but power hungry; and does not scale well to 50 + nodes.
All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them