Skip to content

Commit a7620d6

Browse files
committed
Fix figures in smooth docstring
1 parent f37cd6e commit a7620d6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/transformations/smooth.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ line = GI.LineString([(0.0, 0.0), (1.0, 1.0), (2.0, 0.0)])
1515
smoothed = GO.smooth(line)
1616
smoothed_2 = GO.smooth(line; iterations=2)
1717
18-
f, a, p = lines(line; label = "Original")
19-
lines!(a, smoothed; label = "1 iteration")
20-
lines!(a, smoothed_2; label = "2 iterations")
18+
f, a, p = lines(line; label = "line")
19+
lines!(a, smoothed; label = "smooth(line; iterations=1)")
20+
lines!(a, smoothed_2; label = "smooth(line; iterations=2)")
2121
axislegend(a)
22-
fig
22+
f
2323
```
2424
2525
Smoothing also works on the [`Spherical`](@ref) manifold,
@@ -36,7 +36,7 @@ f, a, p = lines(line; label = "Original", axis = (; title = "Spherical smoothing
3636
lines!(a, smoothed; label = "1 iteration")
3737
lines!(a, smoothed_2; label = "2 iterations")
3838
axislegend(a)
39-
fig
39+
f
4040
```
4141
=#
4242
"""

0 commit comments

Comments
 (0)