```
import numpy as np
import dascore as dc
= dc.get_example_patch()
patch
# get length of distance axis
= patch.coord_shapes["distance"][0]
dist_len
# create range from 0 to dist_len
= np.arange(dist_len)
channel_number
= (
out # first add channel number to coords.
=("distance", channel_number))
patch.update_coords(channel_number# then make channel number a dimensional coordinate
="channel_number")
.set_dims(distance
)
# then plot
; out.viz.waterfall()
```

# Plot Channel Number

Rather than plotting distance or depth, sometimes it is desirable to plot channel number (an index of the non-time dimension).

To do this involves three steps:

- Adding a new coordinate called channel number
- Setting the channel number as the dimension
- Call plot function