plot_target

petrofit.utils.plot_target(image, position, size=None, c='r', lw=None, vmin=None, vmax=None, marker_base_size=2)[source]

Plot an image with a target marker.

Parameters:
imagenp.ndarray or object with data attribute

The image to be displayed.

positiontuple of int

(x, y) coordinates of the target location.

sizeint, optional

The pixel size around the target to display. If not specified, it defaults to the maximum dimension of the image.

cstr, optional

Color of the target marker. Default is red ('r').

lwint or float, optional

Line width of the target marker.

vmin, vmaxint or float, optional

Values to anchor the colormap.

marker_base_sizeint, optional

Base size of the marker which gets scaled relative to the image size. Default is 2.

Notes
—–
The target is plotted as a red ‘+’ at the given position. The displayed
region is determined by the `size` parameter centered at the target position.