Commit a9d2bc1f authored by Somnath, Suhas's avatar Somnath, Suhas
Browse files

Small bug fixes to avoid conflicts in namespace for rainbow_plots

parent b20d12f9
......@@ -267,9 +267,8 @@ def plot_map(axis, data, stdevs=2, **kwargs):
return im
def plot_loops(excit_wfm, datasets, line_colors=[], dataset_names=[], evenly_spaced=True, plots_on_side=5,
x_label='', y_label='', subtitles='Position', title='', central_resp_size=None,
use_rainbow_plots=False, h5_pos=None):
def plot_loops(excit_wfm, datasets, line_colors=[], dataset_names=[], evenly_spaced=True, plots_on_side=5, x_label='',
y_label='', subtitles='Position', title='', central_resp_size=None, use_rainbow_plots=False, h5_pos=None):
"""
Plots loops from multiple datasets from up to 25 evenly spaced positions
......@@ -1110,7 +1109,7 @@ def visualize_sho_results(h5_main, save_plots=True, show_plots=True):
def __plot_loops_maps(ac_vec, resp_mat, grp_name, win_title, spec_var_title, meas_var_title, save_plots,
folder_path, basename, num_rows, num_cols):
plt_title = grp_name + '_' + win_title + '_Loops'
fig, ax = plot_loops(ac_vec, resp_mat, evenly_spaced=True, plots_on_side=5, rainbow_plot=False,
fig, ax = plot_loops(ac_vec, resp_mat, evenly_spaced=True, plots_on_side=5, use_rainbow_plots=False,
x_label=spec_var_title, y_label=meas_var_title, subtitles='Loop', title=plt_title)
if save_plots:
fig.savefig(os.path.join(folder_path, basename + '_' + plt_title + '.png'), format='png', dpi=300)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment