view¶
Define functions for plotting and viewing data of various types.
-
tike.view.
plot_complex
(Z, rmin=None, rmax=None, imin=None, imax=None)[source]¶ Plot real and imaginary parts of a 2D image size by side.
Takes parameters rmin, rmax, imin, imax to scale the ranges of the real and imaginary plots.
-
tike.view.
plot_footprint
(theta, v, h)[source]¶ Plot 2D projections of the trajectory for each pair of axes.
-
tike.view.
plot_phase
(Z, amin=None, amax=None)[source]¶ Plot the amplitude and phase of a 2D image side by side.
Takes parameters amin, amax to scale the range of the amplitude. The phase is scaled to the range -pi to pi.
-
tike.view.
plot_sino_coverage
(theta, v, h, dwell=None, bins=[16, 8, 4], probe_grid=[[1]], probe_shape=(0, 0))[source]¶ Plot projections of minimum coverage in the sinogram space.
-
tike.view.
plot_trajectories
(theta, v, h, t)[source]¶ Plot each trajectory as a function of time in the current figure.
Plots two subplots in the current figure. The top one shows horizonal and vertical position as a function of time and the bottom shows angular position as a function of time.
- Returns
ax1, ax1b (axes) – Handles to the two axes