rockverse.viz.OrthogonalViewer.ref_point#
- property OrthogonalViewer.ref_point#
Get or set the plot reference point in voxel units.
Get or set the plot reference point in image position. It must be an ordered iterable (x, y, z), where
ox <= x < ox+hx*nx,oy <= y < oy+hy*ny, andoz <= z < oz+hz*nz, withox, oy, oz = image.voxel_origin,hx, hy, hz = image.voxel_length, andnx, ny, nz = image.shape. If (x, y, z) is not a grid point, the closest grid point will be used.Examples
>>> viewer = rockverse.OrthogonalViewer(<your parameters here...>) >>> ref_point = viewer.ref_voxel #get the current reference voxel >>> viewer.ref_point = (3.33, 14.72, 10) # Set new reference point and update