Skip to content

Commit 0e75f6c

Browse files
Refactor handling of alpha (#873)
* Refactor handling of alpha * x * preserve formatting of transform * Tweaks * Set aa on for text * add alpha_mode arg * Use alpha_mode everywhere * fix axes * alpha_mode for ruler * Update tests for color * Update env var * Set alpha mode for selectors * Assign alpha_mode and render_queue * Use weighted_blend in one example * Selectors dont write depth * Nor do legends and tooltios * use more the same render_queue and a constant in some places * Use ob.render_order instead of z * Update examples/gridplot/multigraphic_gridplot.py Co-authored-by: Kushal Kolar <kushalkolar@gmail.com> * Use an enum for render_queue values * use GraphicsFeature for alpha and alpha_mode * bump pygfx * fix syntax * fix init for alpha and alpha_mode * allow material to be None * update examples * new notebook screenshots * Remove last refs to wgpu.gui * imgui optional dependency just points to wgpu[imgui] * update imgui things to v1.92 * update Frame, resize handle not visible if subpot isnt resizeable, update IMGUI_TOOLBAR_HEIGHT * black * update screenshots * update more screenshots * more retries and longer delay for grabbing sklearn dataset * update api docs * use diabetes dataset because of download issues with cali housing dataset * EdgeWindow window flags was causing problems with autodoc --------- Co-authored-by: Kushal Kolar <kushalkolar@gmail.com>
1 parent 0293fa3 commit 0e75f6c

File tree

176 files changed

+1129
-594
lines changed

Some content is hidden

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

176 files changed

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

docs/source/api/graphic_features/VertexCmap.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Properties
2020
.. autosummary::
2121
:toctree: VertexCmap_api
2222

23-
VertexCmap.alpha
2423
VertexCmap.buffer
2524
VertexCmap.name
2625
VertexCmap.shared

docs/source/api/graphic_features/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ Graphic Features
2929
Name
3030
Offset
3131
Rotation
32+
Alpha
33+
AlphaMode
3234
Visible
3335
Deleted
3436
GraphicFeatureEvent

docs/source/api/graphics/Graphic.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Properties
2020
.. autosummary::
2121
:toctree: Graphic_api
2222

23+
Graphic.alpha
24+
Graphic.alpha_mode
2325
Graphic.axes
2426
Graphic.block_events
2527
Graphic.deleted

docs/source/api/graphics/ImageGraphic.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Properties
2020
.. autosummary::
2121
:toctree: ImageGraphic_api
2222

23+
ImageGraphic.alpha
24+
ImageGraphic.alpha_mode
2325
ImageGraphic.axes
2426
ImageGraphic.block_events
2527
ImageGraphic.cmap
@@ -47,8 +49,8 @@ Methods
4749
ImageGraphic.add_event_handler
4850
ImageGraphic.add_linear_region_selector
4951
ImageGraphic.add_linear_selector
50-
ImageGraphic.add_rectangle_selector
5152
ImageGraphic.add_polygon_selector
53+
ImageGraphic.add_rectangle_selector
5254
ImageGraphic.clear_event_handlers
5355
ImageGraphic.remove_event_handler
5456
ImageGraphic.reset_vmin_vmax

docs/source/api/graphics/LineCollection.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Properties
2020
.. autosummary::
2121
:toctree: LineCollection_api
2222

23+
LineCollection.alpha
24+
LineCollection.alpha_mode
2325
LineCollection.axes
2426
LineCollection.block_events
2527
LineCollection.cmap
@@ -52,8 +54,8 @@ Methods
5254
LineCollection.add_graphic
5355
LineCollection.add_linear_region_selector
5456
LineCollection.add_linear_selector
55-
LineCollection.add_rectangle_selector
5657
LineCollection.add_polygon_selector
58+
LineCollection.add_rectangle_selector
5759
LineCollection.clear_event_handlers
5860
LineCollection.remove_event_handler
5961
LineCollection.remove_graphic

docs/source/api/graphics/LineGraphic.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Properties
2020
.. autosummary::
2121
:toctree: LineGraphic_api
2222

23+
LineGraphic.alpha
24+
LineGraphic.alpha_mode
2325
LineGraphic.axes
2426
LineGraphic.block_events
2527
LineGraphic.cmap
@@ -46,8 +48,8 @@ Methods
4648
LineGraphic.add_event_handler
4749
LineGraphic.add_linear_region_selector
4850
LineGraphic.add_linear_selector
49-
LineGraphic.add_rectangle_selector
5051
LineGraphic.add_polygon_selector
52+
LineGraphic.add_rectangle_selector
5153
LineGraphic.clear_event_handlers
5254
LineGraphic.remove_event_handler
5355
LineGraphic.rotate

docs/source/api/graphics/LineStack.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Properties
2020
.. autosummary::
2121
:toctree: LineStack_api
2222

23+
LineStack.alpha
24+
LineStack.alpha_mode
2325
LineStack.axes
2426
LineStack.block_events
2527
LineStack.cmap
@@ -52,8 +54,8 @@ Methods
5254
LineStack.add_graphic
5355
LineStack.add_linear_region_selector
5456
LineStack.add_linear_selector
55-
LineStack.add_rectangle_selector
5657
LineStack.add_polygon_selector
58+
LineStack.add_rectangle_selector
5759
LineStack.clear_event_handlers
5860
LineStack.remove_event_handler
5961
LineStack.remove_graphic

docs/source/api/graphics/ScatterGraphic.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Properties
2020
.. autosummary::
2121
:toctree: ScatterGraphic_api
2222

23+
ScatterGraphic.alpha
24+
ScatterGraphic.alpha_mode
2325
ScatterGraphic.axes
2426
ScatterGraphic.block_events
2527
ScatterGraphic.cmap

0 commit comments

Comments
 (0)