Skip to content

Commit 262c68a

Browse files
authored
Fix docstring (#930)
* fix docstring * fix docstring * add docs _gallery to .gitignore * no edge color for spinning spiral example
1 parent 1284981 commit 262c68a

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,4 @@ dmypy.json
135135
.vscode/
136136

137137
examples/desktop/diffs/*.png
138+
docs/source/_gallery/

examples/scatter/spinning_spiral.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
canvas_kwargs={"max_fps": 500, "vsync": False}
3535
)
3636

37-
spiral = figure[0, 0].add_scatter(data, cmap="viridis_r", alpha=0.5, sizes=sizes)
37+
spiral = figure[0, 0].add_scatter(data, cmap="viridis_r", edge_colors=None, alpha=0.5, sizes=sizes)
3838

3939
# pre-generate normally distributed data to jitter the points before each render
4040
jitter = np.random.normal(scale=0.001, size=n * 3).reshape((n, 3))

fastplotlib/graphics/scatter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ def __init__(
101101
* Matplotlib compatible characters: "osD+x^v<>*".
102102
* Unicode symbols: "●○■♦♥♠♣✳▲▼◀▶".
103103
* Emojis: "❤️♠️♣️♦️💎💍✳️📍".
104-
* A string containing the value "custom". In this case, the WGSL
105-
code defined by ``custom_sdf`` will be used.
104+
* A string containing the value "custom". In this case, WGSL code defined by ``custom_sdf`` will be used.
106105
107106
uniform_marker: bool, default False
108107
Use the same marker for all points. Only valid when `mode` is "markers". Useful if you need to use

fastplotlib/layouts/_graphic_methods_mixin.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -497,11 +497,10 @@ def add_scatter(
497497
Supported values:
498498
499499
* A string from pygfx.MarkerShape enum
500-
* Matplotlib compatible characters: "osD+x^v<>".
500+
* Matplotlib compatible characters: "osD+x^v<>*".
501501
* Unicode symbols: "●○■♦♥♠♣✳▲▼◀▶".
502502
* Emojis: "❤️♠️♣️♦️💎💍✳️📍".
503-
* A string containing the value "custom". In this case, the WGSL
504-
code defined by ``custom_sdf`` will be used.
503+
* A string containing the value "custom". In this case, WGSL code defined by ``custom_sdf`` will be used.
505504
506505
uniform_marker: bool, default False
507506
Use the same marker for all points. Only valid when `mode` is "markers". Useful if you need to use

0 commit comments

Comments
 (0)