The plotting module

plotting function

netsalt.plotting.get_spectra(graph, modes_df, pump_index=- 1, width=0.0005)[source]

Compute spectra.

netsalt.plotting.plot_line_mode(graph, modes_df, index, df_entry='passive', ax=None)[source]

Plot single mode on the line.

netsalt.plotting.plot_ll_curve(graph, modes_df, with_legend=True, ax=None, with_colors=True, with_thresholds=False, folder='plots', filename='ll_curve', save_option=False)[source]

Plot LL curves.

netsalt.plotting.plot_mode_evolution(graph, modes_df, index, folder='mode_evolution', ext='.png')[source]

Plot mode evolution as a function of pump power.

netsalt.plotting.plot_modes(graph, modes_df, df_entry='passive', folder='modes', ext='.png')[source]

Plot modes on the graph.

netsalt.plotting.plot_pump_profile(graph, pump, figsize=(5, 4), ax=None, node_size=1.0, c='0.8')[source]

Plot the pump profile on top of the graph structure.

netsalt.plotting.plot_pump_traj(modes_df, with_scatter=True, with_approx=True, ax=None)[source]

plot pump trajectories

netsalt.plotting.plot_quantum_graph(graph, figsize=(5, 4), ax=None, edge_colors=None, node_colors=None, node_size=0.1, color_map='Accent_r', cbar_min=0, cbar_max=1, folder='plots', filename='original_graph', save_option=False)[source]

plot the graph

netsalt.plotting.plot_scan(graph, qualities, modes_df=None, figsize=None, ax=None, with_trajectories=True, with_scatter=True, with_approx=True, folder='plots', filename='scan', relax_upper=False, save_option=False)[source]

plot the scan with the mode found

netsalt.plotting.plot_single_mode(graph, modes_df, index, df_entry='passive', colorbar=True, ax=None, edge_vmin=None, edge_vmax=None)[source]

Plot single mode on the graph.

netsalt.plotting.plot_spectra(graph, modes_df, pump_index=- 1, width=0.0005, ax=None, folder='plots', filename='spectra', save_option=False, with_lorenz=False, plot_kwargs=None)[source]

Plot spectra with linewidths.

netsalt.plotting.plot_stem_spectra(graph, modes_df, pump_index=- 1, ax=None, folder='plots', filename='stem_spectra', save_option=False)[source]

Plot spectra with stem plots.