Skip to content

Commit

Permalink
Update wrap-existing-recipe.md (#4420)
Browse files Browse the repository at this point in the history
  • Loading branch information
damianodegaspari authored Sep 28, 2024
1 parent c1b893c commit c2b7b0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/tutorials/wrap-existing-recipe.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ nothing # hide
```

Our target type is the `MyHist`, which has two fields, as defined above. Roughly speaking, when we
plot a histograms, we're talking about drawing a bar plot, where `barcenters` tells us where to draw
these bars and `barcounts` tells us how high each bar is.
plot a histograms, we're talking about drawing a bar plot, where `bincenters` tells us where to draw
these bars and `bincounts` tells us how high each bar is.

## BarPlot recipe -- extend `Makie.convert_arguments`

Expand Down Expand Up @@ -76,4 +76,4 @@ function Makie.plot!(plot::Hist{<:Tuple{<:MyHist}})
end
h = MyHist([1, 10, 100], 1:3)
hist(h; color=:red, direction=:x)
```
```

0 comments on commit c2b7b0b

Please sign in to comment.