svgbit.plot.spot_type_map#
- svgbit.plot.spot_type_map(dataset: svgbit.core.STDataset.STDataset, save_path: Optional[Union[str, pathlib.Path]] = None, he_image: Optional[Union[str, pathlib.Path, PIL.Image.Image]] = None, draw_uncertain: bool = True, s: float = 16, dpi: float = 300) matplotlib.figure.Figure[source]#
Draw SVG type map.
- Parameters
- datasetSTDataset
A STDataset with hotspot and SVG cluster estimation finished.
- save_pathstr or pathlib.Path, default None
Heatmap save path. If None, plot will not save.
- he_imagestr, pathlib.Path or PIL.Image.Image, default None
H&E image of tissue. If None is given (default), distribution map will not show tissue picture.
- draw_uncertainbool, default True
Whether to draw uncertain spots.
- sfloat, default 16
Spot size.
- dpifloat, default 300
DPI for saved figure.
- Returns
- figmatplotlib.figure.Figure
A matplotlib.figure.Figure plot.