wsidata.accessors.iter.TissueContour#

class TissueContour(tissue_id, shape)#

Bases: object

The data container return by wsidata.iter.tissue_contours

Attributes:
tissue_idint

The id of tissue

shapePolygon

The contour of the tissue

contourPolygon

The contour of the tissue

holesarray of Polygon

The holes of the tissue

xint

The x-coordinate of the tissue

yint

The y-coordinate of the tissue

widthint

The width of the tissue

heightint

The height of the tissue

property contour#

The contour of the tissue

property height#

The height of the tissue

property holes#

The holes of the tissue

plot(ax=None, outline_color='#117554', hole_color='#4379F2', linewidth=2, outline_kwargs=None, hole_kwargs=None)#

Plot the tissue contour.

Parameters:
axmatplotlib.axes.Axes, default: None

The axes to plot the contour.

outline_colorstr, default: “#117554”

The color of the outline.

hole_colorstr, default: “#4379F2”

The color of the holes.

linewidthint, default: 2

The width of the line.

outline_kwargsdict, default: None

Additional keyword arguments for the outline.

hole_kwargsdict, default: None

Additional keyword arguments for the holes.

property width#

The width of the tissue

property x#

The x-coordinate of the tissue

property y#

The y-coordinate of the tissue