Skip to content

Commit cbd8391

Browse files
addition_of_example_in_imageaxes (#175)
Helps in understanding the orientation of axes better.
1 parent 658f694 commit cbd8391

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/src/pkgs/axes/index.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@ img = AxisArray(reshape(1:192, (8,8,3)), :x, :y, :z)
3333
As described in more detail in the [AxisArrays documentation](https://github.com/mbauman/AxisArrays.jl), you can now take slices like this:
3434

3535
```@example 1
36-
sl = img[Axis{:z}(2)]
36+
slz = img[Axis{:z}(2)]
37+
```
38+
```@example 1
39+
slx = img[Axis{:x}(2)]
40+
```
41+
```@example 1
42+
sly = img[Axis{:y}(2)]
3743
```
3844

3945
You can also give units to the axes:

0 commit comments

Comments
 (0)