Skip to content

Commit

Permalink
Fix error in doc build by sampling without replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 committed Apr 29, 2024
1 parent 223ff64 commit d54855c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/src/interpolator_reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,10 @@ f
### Randomly sampled function

```@example 1
using Makie.Random: randsubseq
data = Makie.peaks(100)
sampling_points = rand(CartesianIndices(data), 100)
sampling_points = randsubseq(CartesianIndices(data), 0.011)
data_slice = data[sampling_points]
positions = Point2f.(Tuple.(sampling_points))
Expand Down

0 comments on commit d54855c

Please sign in to comment.