Skip to content

Commit 7075e46

Browse files
kushalkolarclewis7
andauthored
cursor tool and better tooltips (fastplotlib#947)
* new cursor tool, basics work * lint and update api docs * add custom tooltip to figure * example WIP * manual picking, world obj -> graphic mapping * fix * fix gc * stuff * cursor and tooltips refactor, basically works * much simpler tooltip and cursor * move TextBox and Tooltip, update API docs * cursor manages tooltips * update examples * black * cleanup * docstrings * update example * update example * add image space transforms examples * finish space transforms examples * typing * black * docstrings * update examples * textbox constructor takes args, docstrings * True -> true * update names * update cursor examples * new ground truth screenshots for transforms * black * update * revert persist kwarg in PlotArea animations stuff * fix * message for image volumes * Update fastplotlib/graphics/_base.py Co-authored-by: Kushal Kolar <kushalkolar@gmail.com> --------- Co-authored-by: clewis7 <caitlin9165@gmail.com>
1 parent 359770a commit 7075e46

File tree

86 files changed

+2514
-299
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+2514
-299
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
.. _api.Scale:
2+
3+
Scale
4+
*****
5+
6+
=====
7+
Scale
8+
=====
9+
.. currentmodule:: fastplotlib.graphics.features
10+
11+
Constructor
12+
~~~~~~~~~~~
13+
.. autosummary::
14+
:toctree: Scale_api
15+
16+
Scale
17+
18+
Properties
19+
~~~~~~~~~~
20+
.. autosummary::
21+
:toctree: Scale_api
22+
23+
Scale.value
24+
25+
Methods
26+
~~~~~~~
27+
.. autosummary::
28+
:toctree: Scale_api
29+
30+
Scale.add_event_handler
31+
Scale.block_events
32+
Scale.clear_event_handlers
33+
Scale.remove_event_handler
34+
Scale.set_value
35+

docs/source/api/graphic_features/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Graphic Features
4848
Name
4949
Offset
5050
Rotation
51+
Scale
5152
Alpha
5253
AlphaMode
5354
Visible

docs/source/api/graphics/Graphic.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ Properties
3030
Graphic.offset
3131
Graphic.right_click_menu
3232
Graphic.rotation
33+
Graphic.scale
3334
Graphic.supported_events
35+
Graphic.tooltip_format
3436
Graphic.visible
3537
Graphic.world_object
3638

@@ -42,6 +44,9 @@ Methods
4244
Graphic.add_axes
4345
Graphic.add_event_handler
4446
Graphic.clear_event_handlers
47+
Graphic.format_pick_info
48+
Graphic.map_model_to_world
49+
Graphic.map_world_to_model
4550
Graphic.remove_event_handler
4651
Graphic.rotate
4752

docs/source/api/graphics/ImageGraphic.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ Properties
3434
ImageGraphic.offset
3535
ImageGraphic.right_click_menu
3636
ImageGraphic.rotation
37+
ImageGraphic.scale
3738
ImageGraphic.supported_events
39+
ImageGraphic.tooltip_format
3840
ImageGraphic.visible
3941
ImageGraphic.vmax
4042
ImageGraphic.vmin
@@ -52,6 +54,9 @@ Methods
5254
ImageGraphic.add_polygon_selector
5355
ImageGraphic.add_rectangle_selector
5456
ImageGraphic.clear_event_handlers
57+
ImageGraphic.format_pick_info
58+
ImageGraphic.map_model_to_world
59+
ImageGraphic.map_world_to_model
5560
ImageGraphic.remove_event_handler
5661
ImageGraphic.reset_vmin_vmax
5762
ImageGraphic.rotate

docs/source/api/graphics/ImageVolumeGraphic.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ Properties
3737
ImageVolumeGraphic.plane
3838
ImageVolumeGraphic.right_click_menu
3939
ImageVolumeGraphic.rotation
40+
ImageVolumeGraphic.scale
4041
ImageVolumeGraphic.shininess
4142
ImageVolumeGraphic.step_size
4243
ImageVolumeGraphic.substep_size
4344
ImageVolumeGraphic.supported_events
4445
ImageVolumeGraphic.threshold
46+
ImageVolumeGraphic.tooltip_format
4547
ImageVolumeGraphic.visible
4648
ImageVolumeGraphic.vmax
4749
ImageVolumeGraphic.vmin
@@ -55,6 +57,9 @@ Methods
5557
ImageVolumeGraphic.add_axes
5658
ImageVolumeGraphic.add_event_handler
5759
ImageVolumeGraphic.clear_event_handlers
60+
ImageVolumeGraphic.format_pick_info
61+
ImageVolumeGraphic.map_model_to_world
62+
ImageVolumeGraphic.map_world_to_model
5863
ImageVolumeGraphic.remove_event_handler
5964
ImageVolumeGraphic.reset_vmin_vmax
6065
ImageVolumeGraphic.rotate

docs/source/api/graphics/LineCollection.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ Properties
3838
LineCollection.right_click_menu
3939
LineCollection.rotation
4040
LineCollection.rotations
41+
LineCollection.scale
4142
LineCollection.supported_events
4243
LineCollection.thickness
44+
LineCollection.tooltip_format
4345
LineCollection.visible
4446
LineCollection.visibles
4547
LineCollection.world_object
@@ -57,6 +59,9 @@ Methods
5759
LineCollection.add_polygon_selector
5860
LineCollection.add_rectangle_selector
5961
LineCollection.clear_event_handlers
62+
LineCollection.format_pick_info
63+
LineCollection.map_model_to_world
64+
LineCollection.map_world_to_model
6065
LineCollection.remove_event_handler
6166
LineCollection.remove_graphic
6267
LineCollection.rotate

docs/source/api/graphics/LineGraphic.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ Properties
3333
LineGraphic.offset
3434
LineGraphic.right_click_menu
3535
LineGraphic.rotation
36+
LineGraphic.scale
3637
LineGraphic.size_space
3738
LineGraphic.supported_events
3839
LineGraphic.thickness
40+
LineGraphic.tooltip_format
3941
LineGraphic.visible
4042
LineGraphic.world_object
4143

@@ -51,6 +53,9 @@ Methods
5153
LineGraphic.add_polygon_selector
5254
LineGraphic.add_rectangle_selector
5355
LineGraphic.clear_event_handlers
56+
LineGraphic.format_pick_info
57+
LineGraphic.map_model_to_world
58+
LineGraphic.map_world_to_model
5459
LineGraphic.remove_event_handler
5560
LineGraphic.rotate
5661

docs/source/api/graphics/LineStack.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ Properties
3838
LineStack.right_click_menu
3939
LineStack.rotation
4040
LineStack.rotations
41+
LineStack.scale
4142
LineStack.supported_events
4243
LineStack.thickness
44+
LineStack.tooltip_format
4345
LineStack.visible
4446
LineStack.visibles
4547
LineStack.world_object
@@ -57,6 +59,9 @@ Methods
5759
LineStack.add_polygon_selector
5860
LineStack.add_rectangle_selector
5961
LineStack.clear_event_handlers
62+
LineStack.format_pick_info
63+
LineStack.map_model_to_world
64+
LineStack.map_world_to_model
6065
LineStack.remove_event_handler
6166
LineStack.remove_graphic
6267
LineStack.rotate

docs/source/api/graphics/MeshGraphic.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ Properties
3838
MeshGraphic.positions
3939
MeshGraphic.right_click_menu
4040
MeshGraphic.rotation
41+
MeshGraphic.scale
4142
MeshGraphic.supported_events
43+
MeshGraphic.tooltip_format
4244
MeshGraphic.visible
4345
MeshGraphic.world_object
4446

@@ -50,6 +52,9 @@ Methods
5052
MeshGraphic.add_axes
5153
MeshGraphic.add_event_handler
5254
MeshGraphic.clear_event_handlers
55+
MeshGraphic.format_pick_info
56+
MeshGraphic.map_model_to_world
57+
MeshGraphic.map_world_to_model
5358
MeshGraphic.remove_event_handler
5459
MeshGraphic.rotate
5560

docs/source/api/graphics/PolygonGraphic.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ Properties
3939
PolygonGraphic.positions
4040
PolygonGraphic.right_click_menu
4141
PolygonGraphic.rotation
42+
PolygonGraphic.scale
4243
PolygonGraphic.supported_events
44+
PolygonGraphic.tooltip_format
4345
PolygonGraphic.visible
4446
PolygonGraphic.world_object
4547

@@ -51,6 +53,9 @@ Methods
5153
PolygonGraphic.add_axes
5254
PolygonGraphic.add_event_handler
5355
PolygonGraphic.clear_event_handlers
56+
PolygonGraphic.format_pick_info
57+
PolygonGraphic.map_model_to_world
58+
PolygonGraphic.map_world_to_model
5459
PolygonGraphic.remove_event_handler
5560
PolygonGraphic.rotate
5661

0 commit comments

Comments
 (0)