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/src/examples/scales.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Beeswarm plots can be plotted in any combination of `xscale` and `yscale`.
4
4
5
5
Specifically, beeswarm plots are correct in any [separable transform](https://geo.makie.org/stable/nonlinear_transforms/#Nonlinear-but-separable) - basically, any transform in which the x and y coordinates are independent of each other. This excludes most geographic transformations, but includes any transformation you can make using `xscale` and `yscale` in a Makie `Axis`.
6
6
7
-
```@figure logscale
7
+
```@example logscale
8
8
using SwarmMakie, CairoMakie
9
9
data = randn(75) .+ 3
10
10
fig = Figure()
@@ -17,7 +17,7 @@ fig
17
17
18
18
Note how the shape of the beeswarm is transformed in the left plot, because of the log scale.
beeswarm(xs, rand(2000); gutter = 0.3, color = xs)
@@ -14,7 +14,7 @@ A nice gutter size to avoid overlap in neighboring categories ranges between `0.
14
14
15
15
## Examples
16
16
17
-
```@figure gutters
17
+
```@example gutters
18
18
using SwarmMakie, CairoMakie
19
19
f, a, p = beeswarm(
20
20
rand(1:3, 300), randn(300);
@@ -23,7 +23,7 @@ f, a, p = beeswarm(
23
23
p.gutter = 0.5
24
24
```
25
25
Note the warning messages printed here! These can be helpful to diagnose when your data is moving too far out of the gutter, but you can turn them off by passing `gutter_threshold = false` or setting the `gutter_threshold` to a higher value (must be an `Int` and >0).
0 commit comments