You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/user_guide/guide.rst
+48-13Lines changed: 48 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ What is `fastplotlib`?
21
21
----------------------
22
22
23
23
`fastplotlib` is a cutting-edge plotting library built using the `pygfx <https://github.com/pygfx/pygfx>`_ rendering engine.
24
-
The lowerlevel details of the rendering process (i.e. defining a scene, camera, renderer, etc.) are abstracted away, allowing users to focus on their data.
24
+
The lower-level details of the rendering process (i.e. defining a scene, camera, renderer, etc.) are abstracted away, allowing users to focus on their data.
25
25
The fundamental goal of `fastplotlib` is to provide a high-level, expressive API that promotes large-scale explorative scientific visualization.
26
26
27
27
@@ -47,7 +47,7 @@ Before giving a detailed overview of the library, here is a minimal example::
47
47
.. image:: /_static/guide_hello_world.png
48
48
49
49
50
-
This was a simple example of how the `fastplotlib` API works to create a plot, add some data to the plot, and then visualize it.
50
+
This is just a simple example of how the `fastplotlib` API works to create a plot, add some image data to the plot, and then visualize it.
51
51
However, this is just scratching the surface of what we can do with `fastplotlib`.
52
52
Next, we will take a look at the building blocks of `fastplotlib` and how they can be used to create more complex visualizations.
53
53
@@ -56,30 +56,43 @@ Next, we will take a look at the building blocks of `fastplotlib` and how they c
56
56
The base of any visualization in `fastplotlib` is a `Figure` object. This can be a singular plot or a grid of subplots.
57
57
The `Figure` object houses and takes care of the underlying rendering components such as the camera, controller, renderer, and canvas.
58
58
59
-
Initially, our figure is empty as we have not added any `Graphics`. After defining a `Figure`, we can begin to add `Graphic` objects.
59
+
After defining a `Figure`, we can begin to add `Graphic` objects.
60
60
61
61
**Graphics**
62
62
63
-
A `Graphic` can be an image, a line, a scatter, a collection of lines, and more. Graphics have what we like to call `GraphicFeatures` which
64
-
are mutable, indexable properties that can be linked to events.
63
+
A `Graphic` can be an image, a line, a scatter, a collection of lines, and more. All graphics can be given a string name. This allows graphics
@@ -153,11 +166,33 @@ Using our example from above: once we add a `Graphic` to the figure, we can then
153
166
.. image:: /_static/guide_image_slice.png
154
167
155
168
Now that we have the basics of creating a `Figure`, adding `Graphics` to the `Figure`, and working with `GraphicFeatures` to change or alter a `Graphic`.
156
-
Let's take a look at how we can define events to like `Graphics` and their `GraphicFeatures` together.
169
+
Let's take a look at how we can define events to link `Graphics` and their properties together.
157
170
158
171
Events
159
172
------
160
173
174
+
All events inherit from the `pygfx.Event` class (add link)
0 commit comments