lazyslide.pl.tissue

Contents

lazyslide.pl.tissue#

tissue(wsi, tissue_id=None, tissue_key='tissues', title=None, show_contours=True, show_id=True, mark_origin=True, scalebar=True, in_bounds=True, zoom=None, img_bytes_limit=2000000000.0, ax=None, ncols=4, wspace=0.5, hspace=0.5, return_figure=False)#

Display the tissue image.

Parameters:
wsiWSIData

The whole-slide image object.

tissue_idint or ‘all’, default: None

The tissue id (piece) to extract.

tissue_keystr, default: “tissue”

The tissue key.

titlestr or array of str, default: None

The title of the plot.

show_contoursbool, default: True

Show the tissue contours.

mark_originbool, default: True

Show the origin.

show_idbool, default: True

Show the tissue id.

scalebarbool, default: True

Show the scalebar.

in_boundsbool, default: True

Show the tissue in bounds.

zoom(xmin, xmax, ymin, ymax), default: None

A zoom view for the current viewport. If in range [0, 1], will be interpreted as a fraction of the image size. If > 1, will be interpreted as the absolute size in pixels.

img_bytes_limitint, default: 2e9

The image bytes limits.

axmatplotlib.axes.Axes, default: None

The axes to plot on.

Examples

>>> import lazyslide as zs
>>> wsi = zs.datasets.gtex_artery()
>>> zs.pl.tissue(wsi, tissue_id="all")
../../_images/lazyslide-pl-tissue-1.png