Skip to content

Commit

Permalink
Merge branch 'dstansby1-master-patch-11797' into 'master'
Browse files Browse the repository at this point in the history
Break up long code block in example

See merge request LMSAL_HUB/aia_hub/aiapy!108
  • Loading branch information
wtbarnes committed Jan 28, 2021
2 parents 0277df3 + 2edfab2 commit 7beedf4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/calculate_response_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
# The `~aiapy.response.Channel` object provides an interface to all of these
# properties of the telescope. Below, we show how to plot several of these
# properties as a function of wavelength.

# Reflectance
fig = plt.figure()
ax = fig.add_subplot(221)
ax.plot(c.wavelength, c.primary_reflectance, label=r'$R_P$')
Expand All @@ -60,18 +62,24 @@
ax.set_xlim(50, 400)
ax.set_xlabel(r'$\lambda$ [Å]')
ax.legend(frameon=False)

# Transmittance
ax = fig.add_subplot(222)
ax.plot(c.wavelength, c.entrance_filter_efficiency, label=r'$T_E$')
ax.plot(c.wavelength, c.focal_plane_filter_efficiency, label=r'$T_F$')
ax.set_ylabel(r'Transmittance')
ax.set_xlim(50, 400)
ax.set_xlabel(r'$\lambda$ [Å]')
ax.legend(frameon=False)

# Contamination
ax = fig.add_subplot(223)
ax.plot(c.wavelength, c.contamination)
ax.set_ylabel(r'Contamination, $D(\lambda)$')
ax.set_xlim(50, 400)
ax.set_xlabel(r'$\lambda$ [Å]')

# Quantumn efficiency
ax = fig.add_subplot(224)
ax.plot(c.wavelength, c.quantum_efficiency)
ax.set_ylabel(r'Quantum Efficiency, $Q(\lambda)$')
Expand Down

0 comments on commit 7beedf4

Please sign in to comment.