Commit babe0ca5 authored by syz's avatar syz
Browse files

Updated argument names in function calls

parent 205f516c
......@@ -158,9 +158,9 @@ px.plot_utils.plotScree(h5_s, title='Note the exponential drop of variance with
first_evecs = h5_v[:9, :]
px.plot_utils.plot_loops(freq_vec, np.abs(first_evecs), x_label=x_label, y_label=y_label, plots_on_side=3,
subtitles='Component', title='SVD Eigenvectors (Amplitude)', evenly_spaced=False)
subtitle_prefix='Component', title='SVD Eigenvectors (Amplitude)', evenly_spaced=False)
px.plot_utils.plot_loops(freq_vec, np.angle(first_evecs), x_label=x_label, y_label='Phase (rad)', plots_on_side=3,
subtitles='Component', title='SVD Eigenvectors (Phase)', evenly_spaced=False)
subtitle_prefix='Component', title='SVD Eigenvectors (Phase)', evenly_spaced=False)
# Visualize the abundance maps:
px.plot_utils.plot_map_stack(abun_maps, num_comps=9, heading='SVD Abundance Maps',
......
......@@ -158,9 +158,9 @@ px.plot_utils.plotScree(h5_s, title='Note the exponential drop of variance with
first_evecs = h5_v[:9, :]
px.plot_utils.plot_loops(freq_vec, np.abs(first_evecs), x_label=x_label, y_label=y_label, plots_on_side=3,
subtitles='Component', title='SVD Eigenvectors (Amplitude)', evenly_spaced=False)
subtitle_prefix='Component', title='SVD Eigenvectors (Amplitude)', evenly_spaced=False)
px.plot_utils.plot_loops(freq_vec, np.angle(first_evecs), x_label=x_label, y_label='Phase (rad)', plots_on_side=3,
subtitles='Component', title='SVD Eigenvectors (Phase)', evenly_spaced=False)
subtitle_prefix='Component', title='SVD Eigenvectors (Phase)', evenly_spaced=False)
# Visualize the abundance maps:
px.plot_utils.plot_map_stack(abun_maps, num_comps=9, heading='SVD Abundance Maps',
......
......@@ -47,8 +47,8 @@ def visualize_sho_results(h5_main, save_plots=True, show_plots=True, cmap=None):
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, use_rainbow_plots=False,
x_label=spec_var_title, y_label=meas_var_title, subtitles='Position', title=plt_title)
fig, ax = plot_loops(ac_vec, resp_mat, evenly_spaced=True, plots_on_side=5,
x_label=spec_var_title, y_label=meas_var_title, subtitle_prefix='Position', 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