shgpy.plotter module

shgpy.plotter.easy_plot(list_of_dats, list_of_param_dicts, pcs_to_include, show_plot=True, filename=None, show_legend=False, xlabel=None, ylabel=None)

An easy linear plotting routine for SHG data.

Parameters:
list_of_datslist of DataContainer

List of DataContainer instances to plot.

list_of_param_dictslist of dict

List of matplotlib parameter dictionaries, each corresponding to a particular DataContainer.

pcs_to_includelist of str

List of polarization combinations to include in the plot.

show_plotbool

Defaults to True

filenamestr or NoneType

If None, no figure is saved. Otherwise, a figure is saved at the location specified by filename.

show_legendbool

Defaults to False

shgpy.plotter.easy_polar_plot(list_of_dats, list_of_param_dicts, pcs_to_include, show_plot=True, filename=None, show_legend=False)

An easy polar plotting routine for SHG data.

Parameters:
list_of_datslist of DataContainer

List of DataContainer instances to plot.

list_of_param_dictslist of dict

List of matplotlib parameter dictionaries, each corresponding to a particular DataContainer.

pcs_to_includelist of str

List of polarization combinations to include in the plot.

show_plotbool

Defaults to True

filenamestr or NoneType

If None, no figure is saved. Otherwise, a figure is saved at the location specified by filename.

show_legendbool

Defaults to False