vis.py¶
Collection of routines helpful for visualizing results and generating figures.
-
vis.
plot_dataset_diffOp1
(dataset, np_xj=None, np_xi=None, rows=4, cols=6, II=None, figsize=(18.0, 9.0), title='Data Samples: u, f=L[u]', xlabel='x', ylabel='', left=0.125, bottom=0.1, right=0.9, top=0.94, wspace=0.4, hspace=0.4, fontsize=16, y=1.0, flag_draw=True, **extra_params)¶ Plots a collection of data samples in a panel.
-
vis.
plot_dataset_diffOp2
(dataset, np_xj=None, np_xi=None, channelI_u=0, channelI_f=0, rows=4, cols=6, II=None, figsize=(18.0, 9.0), title='Data Samples: u, f=L[u]', xlabel='x', ylabel='', left=0.125, bottom=0.1, right=0.9, top=0.94, wspace=0.01, hspace=0.1, fontsize=16, y=1.0, flag_draw=True, **extra_params)¶ Plots a collection of data samples in a panel.
-
vis.
plot_gridspec_image_array
(outer_h, img_arr, label_arr=None, title=None, figSize=(18, 18), title_yp=0.95, cmap='gray', title_x=0.0, title_y=1.0, title_fsize=14)¶ Plots an array of images as a collection of panels.
-
vis.
plot_image_array
(img_arr, label_arr=None, title=None, figSize=(18, 18), title_yp=0.95, cmap='gray', **extra_params)¶ Plots an array of images as a collection of panels.
-
vis.
plot_images_in_array
(axs, img_arr, label_arr=None, cmap=None, **extra_params)¶ Plots an array of images as a collection of panels.
-
vis.
plot_samples_u_f_1d
(u_list, f_list, np_xj, np_xi, rows=4, cols=6, figsize=(18.0, 9.0), title='Data Samples: u, f=L[u]', xlabel='x', ylabel='', left=0.125, bottom=0.1, right=0.9, top=0.94, wspace=0.4, hspace=0.4, fontsize=16, y=1.0, flag_draw=True, **extra_params)¶ Plots a collection of data samples in a panel.
-
vis.
plot_samples_u_f_2d
(u_list, f_list, np_xj, np_xi, channelI_u=0, channelI_f=0, rows=4, cols=6, figsize=(18.0, 9.0), title='Data Samples: u, f=L[u]', xlabel='x', ylabel='', left=0.125, bottom=0.1, right=0.9, top=0.94, wspace=0.01, hspace=0.1, fontsize=16, y=1.0, flag_draw=True, **extra_params)¶ Plots a collection of data samples in a panel.
-
vis.
plot_samples_u_f_fp_1d
(u_list, f_target_list, f_pred_list, np_xj, np_xi, rows=4, cols=6, figsize=(18.0, 9.0), title='Data Samples: u, f=L[u]', xlabel='x', ylabel='', left=0.125, bottom=0.1, right=0.9, top=0.94, wspace=0.4, hspace=0.4, fontsize=16, y=1.0, flag_draw=True, **extra_params)¶ Plots a collection of data samples and predictions in a panel.
-
vis.
plot_samples_u_f_fp_2d
(u_list, f_target_list, f_pred_list, np_xj, np_xi, channelI_u=0, channelI_f=0, rows=4, cols=6, figsize=(18.0, 9.0), title='Data Samples: u, f=L[u]', xlabel='x', ylabel='', left=0.125, bottom=0.1, right=0.9, top=0.94, wspace=0.01, hspace=0.1, fontsize=16, y=1.0, flag_draw=True, **extra_params)¶ Plots a collection of data samples and predictions in a panel.
-
vis.
save_fig
(baseFilename, extraLabel, flag_verbose=0, dpi_set=200, flag_pdf=False)¶ Saves figures to disk.