yieldplotlib.plots.yip_plots#

Generate plots for yield input packages.

Functions#

make_offax_psf_movie(yip, save_name[, ax_kwargs, ...])

Generate a movie of the off-axis stellar PSF moving as a function of lambda/D.

plot_core_throughtput(runs, run_labels[, yip, ax, ...])

Plot the core throughput as a function of lambda/D.

Module Contents#

yieldplotlib.plots.yip_plots.make_offax_psf_movie(yip, save_name, ax_kwargs=None, plot_kwargs=None)[source]#

Generate a movie of the off-axis stellar PSF moving as a function of lambda/D.

Args:
yip (YIPDirectory):

YIPDirectory to plot.

save_name (str):

File path to where the output movie will be saved.

ax_kwargs (dict, optional):

Keyword arguments to pass to ax.set().

plot_kwargs (dict, optional):

Keyword arguments to pass to plt.figure().

Returns:

None

yieldplotlib.plots.yip_plots.plot_core_throughtput(runs, run_labels, yip=None, ax=None, ax_kwargs=None, use_cyberpunk=False, title=None, aperture_radius=0.85)[source]#

Plot the core throughput as a function of lambda/D.

Args:
runs (list):

List of EXOSIMSDirectories and AYODirectories to plot.

run_labels (list):

List of labels for each run.

yip (YIPDirectory):

YIPDirectory to plot. If None, the throughput directly from the YIP (accessed via yippy) will not be plotted.

ax (matplotlib.axes.Axes, optional):

Axes to plot on. If None, a new figure is created.

ax_kwargs (dict, optional):

Keyword arguments to pass to ax.set().

use_cyberpunk (bool, optional):

Whether to use the mplcyberpunk style. Default is False.

title (str, optional):

Title for the plot.

aperture_radius (float):

Radius of the photometric aperture to use for the YIP throughput calculation.

Returns:
matplotlib.figure.Figure, matplotlib.axes.Axes:

Figure and axes objects for the plot.