ptyrad.plotting#
Visualization functions for summary figures
- ptyrad.plotting.plot_loss_curves(loss_iters, last_n_iters=10, show_fig=True, pass_fig=False)[source]#
- ptyrad.plotting.plot_obj_tilts(pos, tilts, figsize=(16, 16), show_fig=True, pass_fig=False)[source]#
Plot the obj tilts given the probe position and pos-dependent tilts
- ptyrad.plotting.plot_obj_tilts_avg(avg_tilt_iters, last_n_iters=2, show_fig=True, pass_fig=False)[source]#
- ptyrad.plotting.plot_pos_grouping(pos, batches, circle_diameter=False, diameter_type='90%', figsize=(16, 8), dot_scale=1, show_fig=True, pass_fig=False)[source]#
- ptyrad.plotting.plot_probe_modes(init_probe=None, opt_probe=None, amp_or_phase='amplitude', real_or_fourier='real', phase_cmap=None, amplitude_cmap=None, show_fig=True, pass_fig=False)[source]#
- ptyrad.plotting.plot_scan_positions(pos, init_pos=None, img=None, offset=None, figsize=(16, 16), dot_scale=0.001, show_arrow=True, show_fig=True, pass_fig=False)[source]#
Plot the scan positions given an array of (N,2)
- ptyrad.plotting.plot_sigmoid_mask(Npix, relative_radius, relative_width, img=None, show_circles=False)[source]#
Plot a sigmoid mask overlay on img with a line profile
- ptyrad.plotting.plot_slice_thickness(dz_iters, last_n_iters=10, show_fig=True, pass_fig=False)[source]#
Modules