Skip to content

Commit 573b9f5

Browse files
authored
add julia code fence around doc in MakieExt (#139)
* add julia code fence around doc in MakieExt * more fix
1 parent 32f5a45 commit 573b9f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ext/FHistMakieExt.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Plot a vector of 1D histograms stacked, use `errors` to show or hide error bar i
4040
regarding how to make legends semi-manually.
4141
4242
# Examples
43+
```julia
4344
h1 = Hist1D(randn(1000); binedges = -3:0.3:3)
4445
h2 = Hist1D(randn(10000); binedges = -3:0.3:3)
4546
@@ -50,6 +51,7 @@ title = "Processes"
5051
5152
Legend(fig[1,2], elements, labels, title)
5253
fig
54+
```
5355
"""
5456
@recipe(StackedHist) do scene
5557
Attributes(
@@ -269,14 +271,15 @@ end
269271
Inject collaboration text such as `ATLAS/CMS Preliminary` into the plot. The position `Point2f` is in relative x and y.
270272
271273
## Example
272-
```
274+
```julia
273275
h1 = Hist1D(randn(10^4))
274276
with_theme(ATLASTHEME) do
275277
fig, ax, p = tairs(h1)
276278
errorbars!(h1)
277279
collabtext!(ax)
278280
fig
279281
end
282+
```
280283
"""
281284
function FHist.collabtext!(axis, colabname = "ATLAS", stage = "Preliminary"; position=:lt)
282285
relative_projection = Makie.camrelative(axis.scene);

0 commit comments

Comments
 (0)