stereo.plots.PlotTimeSeriesAnalysis.time_series_tree_plot¶
- PlotTimeSeriesAnalysis.time_series_tree_plot(use_result='annotation', method='sankey', edges=None, dot_size_scale=300, palette='tab20', ylabel_pos='left', width=6, height=6, x_label=None, y_label=None)[source]¶
a tree plot to display the cell amounts changes during time series, trajectory can be add to plot by edges.
- Parameters:
use_result (
Optional[str]) – the col in obs representing celltype or clustering.method (
Optional[str]) – choose from sankey and dot, choose the way to display.edges (
Optional[str]) – a parameter to add arrow to illustrate development trajectory. if edges==’page’, use paga result, otherwise use a list of tuple of celltype pairs as father node and child node. # flake8: noqadot_size_scale (
Optional[int]) – only used for method=’dot’, to adjust dot relatively size.palette (
Optional[str]) – color palette to paint different celltypes.ylabel_pos (
Optional[str]) – position to plot y labels.width (
Optional[float]) – width of figure.height (
Optional[float]) – height of figure.x_label (
Optional[str]) – the x label.y_label (
Optional[str]) – the y label.
- Returns:
a fig object