Skip to content

Commit

Permalink
addition_of_example_in_imageaxes (#175)
Browse files Browse the repository at this point in the history
Helps in understanding the orientation of axes better.
  • Loading branch information
krishna-vasudev authored Dec 13, 2020
1 parent 658f694 commit cbd8391
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/src/pkgs/axes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ img = AxisArray(reshape(1:192, (8,8,3)), :x, :y, :z)
As described in more detail in the [AxisArrays documentation](https://github.com/mbauman/AxisArrays.jl), you can now take slices like this:

```@example 1
sl = img[Axis{:z}(2)]
slz = img[Axis{:z}(2)]
```
```@example 1
slx = img[Axis{:x}(2)]
```
```@example 1
sly = img[Axis{:y}(2)]
```

You can also give units to the axes:
Expand Down

0 comments on commit cbd8391

Please sign in to comment.