Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bed5a95

Browse filesBrowse files
committed
docstrings
1 parent 718eee7 commit bed5a95
Copy full SHA for bed5a95

File tree

Expand file treeCollapse file tree

1 file changed

+14
-13
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+14
-13
lines changed

‎fastplotlib/graphics/line_slider.py

Copy file name to clipboardExpand all lines: fastplotlib/graphics/line_slider.py
+14-13Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@
1717

1818

1919
class SliderValueFeature(GraphicFeature):
20+
# A bit much to have a class for this but this allows it to integrate with the fastplotlib callback system
2021
"""
21-
A bit much to have a class for this but this allows it to integrate with the fastplotlib callback system
22+
Manages the slider value and callbacks
2223
2324
**pick info**
2425
25-
+------------------+----------------------------------------------------------------+
26-
| key | value |
27-
+==================+================================================================+
28-
| "new_data" | the new slider position in world coordinates |
29-
| "selected_index" | the graphic data index that corresponds to the slider position |
30-
| "world_object" | parent world object |
31-
| "graphic" | LineSlider instance |
32-
+------------------+----------------------------------------------------------------+
26+
================== ================================================================
27+
key value
28+
================== ================================================================
29+
"new_data" the new slider position in world coordinates
30+
"selected_index" the graphic data index that corresponds to the slider position
31+
"world_object" parent world object
32+
================== ================================================================
3333
3434
"""
3535
def __init__(self, parent, axis: str, value: float):
@@ -110,10 +110,11 @@ def __init__(
110110
111111
Features
112112
--------
113-
value: SliderValueFeature
114-
| value() returns the current slider position in world coordinates
115-
| use value.add_event_handler() to add callback functions that are called
116-
when the LineSlider value changes. See feaure class for event pick_info table
113+
114+
value: :class:`SliderValueFeature`
115+
``value()`` returns the current slider position in world coordinates
116+
use ``value.add_event_handler()`` to add callback functions that are
117+
called when the LineSlider value changes. See feaure class for event pick_info table
117118
118119
"""
119120

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.