def display_bare_spectrum(index): title = 'bare spectrum: subsystem {} ({})'.format( self.sweep.hilbertspace.index(subsys), subsys._sys_type) __ = splot.bare_spectrum(self.sweep, subsys, title=title, fig_ax=(fig, axes_list_flattened[index])) axes_list_flattened[index].axvline(param_val, color='gray', linestyle=':')
def display_bare_spectrum(sweep, subsys, param_val, fig_ax): title = 'bare spectrum: subsystem {} ({})'.format( sweep.get_subsys_index(subsys), subsys._sys_type) __ = splot.bare_spectrum(sweep, subsys, title=title, fig_ax=fig_ax) _, axes = fig_ax axes.axvline(param_val, color='gray', linestyle=':')