slicepopup¶
- slicepopup(mainfig_h, mainax_h, x_vals, y_vals, data, x_label, y_label, z_label, slicedir, vis_on, popax_h)
SLICEPOPUP Create an interactive popup window that shows 2-D image slices on mouse hover
- Usage:
- [popfig_h, popax_h] = slicepopup(mainfig_h, mainax_h, x_vals, y_vals, data, …
x_label, y_label, z_label, slicedir, vis_on, popax_h)
- Inputs:
mainfig_h : figure handle - main figure – required mainax_h : axes handle - axis on main figure containing the 2-D image – required x_vals : 1xM double - x coordinates (columns) – required y_vals : 1xN double - y coordinates (rows) – required data : NxM double - image data; if empty, read from the axis image – required x_label : char - x-axis label – required y_label : char - y-axis label – required z_label : char - z / popup data label – required slicedir : ‘x’ or ‘y’ - slice direction – required vis_on : logical - initial popup visibility (default: true) popax_h : axes handle - popup axis (default: creates new figure)
- Outputs:
popfig_h : figure handle - popup figure popax_h : axes handle - popup axis
See also: imagesc, windowbuttonmotionfcn
∿∿∿ Prerau Laboratory MATLAB Codebase · sleepEEG.org ∿∿∿
SETUP POPUP WINDOW¶