Skip to content

Commit c9a97c0

Browse files
committed
Switch from LScene to Axis3
1 parent dec7ea9 commit c9a97c0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/src/examples/darts.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,17 @@ bullseye_outer = ScoredRegion(Ngon(Sector((6.35mm, 16.0mm), (0.0, 2π)); N=32),
100100
# Get set of all regions
101101
all_regions = vcat(vec(board_regions), bullseye_inner, bullseye_outer)
102102
103+
# Initialize a 3D figure
103104
fig = Figure()
104-
ax = LScene(fig[1, 1], scenekw=(show_axis=true,))
105+
#ax = LScene(fig[1, 1], scenekw=(show_axis=true,))
106+
ax = Axis3(fig[1, 1]; xlabel="X", ylabel="Y", zlabel="Z")
107+
limits!(ax, -0.1..0.1, -1.5..1.5, 0..3; fixed=true)
105108
109+
# Populate the dart board scored regions
106110
for region in all_regions
107111
poly!(ax, _poly(region.geometry), color=region.color)
108112
end
109113
110-
limits!(ax, -0.1 .. 0.1, -1.5 .. 1.5, 0 .. 3)
111-
112114
fig
113115
```
114116

0 commit comments

Comments
 (0)