Skip to content

Commit 1284981

Browse files
authored
Scatter markers and other scatter features (#913)
* cleanup * start per-vertex markers * vectorized marker code * more scatter stuff * progress * progress * GraphicFeatures.property_name is now an instance attribute instead of a class attribute * all point features implemented, not a single thing tested yet * docstring * some reorganization of scatter and line related features * docstring * fix * update fastplotlib/layouts/_graphic_methods_mixin.py * basics work * modify iris example to use markers * scatter tests, black * add asterisk to test * sprites example * update examples * add scatter validation example * fixes * fix * more tests * more fixes and tests * markers buffer manager tests * docstring * rotation fixes and tests * add a useful assert to positions data buffer manager test * point_rotations tests * need float32 else all tests fail lulz * black * skip graphic features that are None * fix * fix * update scatter screenshot * update scatter API docs * update event tables * increase tolerance because of mac * I guess let's keep the higher 0.2 threshold * remove renamed feature docs * finish sentence
1 parent 8b128d3 commit 1284981

61 files changed

Lines changed: 2382 additions & 474 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
.. _api.EdgeWidth:
2+
3+
EdgeWidth
4+
*********
5+
6+
=========
7+
EdgeWidth
8+
=========
9+
.. currentmodule:: fastplotlib.graphics.features
10+
11+
Constructor
12+
~~~~~~~~~~~
13+
.. autosummary::
14+
:toctree: EdgeWidth_api
15+
16+
EdgeWidth
17+
18+
Properties
19+
~~~~~~~~~~
20+
.. autosummary::
21+
:toctree: EdgeWidth_api
22+
23+
EdgeWidth.value
24+
25+
Methods
26+
~~~~~~~
27+
.. autosummary::
28+
:toctree: EdgeWidth_api
29+
30+
EdgeWidth.add_event_handler
31+
EdgeWidth.block_events
32+
EdgeWidth.clear_event_handlers
33+
EdgeWidth.remove_event_handler
34+
EdgeWidth.set_value
35+

docs/source/api/graphic_features/PointsSizesFeature.rst

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

docs/source/api/graphic_features/VertexCmap.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Properties
2222

2323
VertexCmap.buffer
2424
VertexCmap.name
25-
VertexCmap.shared
2625
VertexCmap.transform
2726
VertexCmap.value
2827

docs/source/api/graphic_features/VertexColors.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Properties
2121
:toctree: VertexColors_api
2222

2323
VertexColors.buffer
24-
VertexColors.shared
2524
VertexColors.value
2625

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

docs/source/api/graphic_features/VertexPositions.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Properties
2121
:toctree: VertexPositions_api
2222

2323
VertexPositions.buffer
24-
VertexPositions.shared
2524
VertexPositions.value
2625

2726
Methods

0 commit comments

Comments
 (0)