tests.paper.plotting

Plotting methods for plotting guide power laws on graphs.

These methods are shared by tests.paper.ssm_paper_utils and tests.paper.ssm_compare. In the sound-shell-model repository these methods are included in both of the aforementioned files.

Functions

tests.paper.plotting.get_yaxis_limits(ps_type, strength=utils.Strength.WEAK)
Parameters:
Return type:

Tuple[float, float]

tests.paper.plotting.plot_guide_power_law(ax, loc, power, xloglen=1, txt='', txt_shift=(1, 1), color='k', linestyle='-')

Plot a guide power law going through loc[0], loc[1] with index power Optional annotation at (loc[0]*txt_shift[0], loc[1]*txt_shift[1]) Returns the points in two arrays (is this the best thing?)

Parameters:
  • ax (Axes)

  • loc (ndarray)

  • txt (str)

  • txt_shift (Tuple[float, float])

  • color (str)

  • linestyle (str)

tests.paper.plotting.plot_guide_power_law_prace(ax, x, y, n, position, shifts=None)

Wrapper for plot_guide_power_law, with power laws and line shifts appropriate for velocity and GW spectra of prace runs

Parameters:
tests.paper.plotting.plot_guide_power_laws_prace(f_v, f_gw, z, pow_v, y, pow_gw, np_lo=(5, 9), inter_flag=False)

Plot guide power laws (assumes params all same for list) Shifts designed for simulataneous nucleation lines

Parameters:
Return type:

Tuple[Figure, Figure]

tests.paper.plotting.plot_guide_power_laws_ssm(fig, z, powers, ps_type=utils.PSType.V, inter_flag=False)

Plot guide power laws (assumes params all same for list) Shifts designed for simultaneous nucleation lines

Parameters:
Return type:

Figure

tests.paper.plotting.plot_ps(z_list, pow_list, ps_type, ax_limits=utils.Strength.WEAK, leg_list=None, col_list=None, ls_list=None, fig=None, pretty=False)

Plots a list of power spectra, with axis limits appropriate to prace runs returns a figure handle

Parameters:
Return type:

Figure