point_contour

Contents

point_contour#

glue.utils.matplotlib.point_contour(x, y, data)[source]#

Calculate the contour that passes through (x,y) in data

Parameters:
data~numpy.ndarray

A 2D image.

xint

Index of x location.

yint

Index of y location.

Returns:
contour~numpy.ndarray

A shape (N, 2) numpy array giving the x and y locations of the N contour vertices.