plot_sensitivity_curve

legwork.visualisation.plot_sensitivity_curve(frequency_range=None, y_quantity='ASD', fig=None, ax=None, show=True, figsize=(10, 7), color='#18068b', fill=True, alpha=0.2, linewidth=1, label=None, **kwargs)[source]

Plot the LISA sensitivity curve

Parameters
frequency_rangefloat array

Frequency values at which to plot the sensitivity curve

y_quantity{{ “ASD”, “h_c” }}

Which quantity to plot on the y axis (amplitude spectral density or characteristic strain)

fig: `matplotlib Figure`

A figure on which to plot the distribution. Both ax and fig must be supplied for either to be used

ax: `matplotlib Axis`

An axis on which to plot the distribution. Both ax and fig must be supplied for either to be used

showboolean

Whether to immediately show the plot or only return the Figure and Axis

figsizetuple

Tuple with size for the x- and y-axis if creating a new figure (i.e. ignored when fig/ax is not None)

colorstring or tuple

Colour to use for the curve, see https://matplotlib.org/tutorials/colors/colors.html for details on how to specify a colour

fillboolean

Whether to fill the area below the sensitivity curve

alphafloat

Opacity of the filled area below the sensitivity curve (ignored if fill is False)

linewidthfloat

Width of the sensitivity curve

labelstring

Label for the sensitivity curve in legends

**kwargsvarious

Keyword args are passed to legwork.psd.power_spectral_density(), see those docs for details on possible arguments.

Returns
figmatplotlib Figure

The figure on which the distribution is plotted

axmatplotlib Axis

The axis on which the distribution is plotted