Skip to content

Commit 6acd543

Browse files
authored
Added a simple example to the documentation homepage. (#44)
1 parent 358938d commit 6acd543

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

docs/index.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,32 @@ spaceflight.
77

88
|
99
10+
Examples
11+
--------
12+
Load and display a single FITS file.
13+
14+
.. jupyter-execute::
15+
16+
import matplotlib.pyplot as plt
17+
import named_arrays as na
18+
import msfc_ccd
19+
20+
# Load the sample image
21+
image = msfc_ccd.fits.open(msfc_ccd.samples.path_fe55_esis1)
22+
23+
# Display the sample image
24+
fig, ax = plt.subplots(
25+
constrained_layout=True,
26+
)
27+
im = na.plt.imshow(
28+
image.outputs.value,
29+
axis_x=image.axis_x,
30+
axis_y=image.axis_y,
31+
ax=ax,
32+
);
33+
34+
|
35+
1036

1137
API Reference
1238
=============

0 commit comments

Comments
 (0)