Plotting: mc.pl#

Visualization of reconstructed cell shapes, cell-cell forces and the spatial distribution of mechanical communication.

Cell shapes and contacts#

element_plot

Plotting cell elements

alphashape_plot

Plot cell shape using alpha shape, visualize cell data by colors.

alphashape_plot3

Render the reconstructed 3D cell shapes with PyVista.

contact_plot

Plot cell-cell contact mechanical signals as colored line segments.

highlight_cell

Highlight a group of cells with a unified color overlay using alpha shape.

Spatial communication#

vis_contact_signal

Visualize contact signals or relationships between cells

signal_direction_plot

Plot spatial directions of cell-cell communication using quiver arrows.

signal_direction_plot3

3D Plot spatial directions of cell-cell communication using quiver arrows.

forceij_plot

Plot intercellular forces between elements of selected cells using quiver arrows.

spatial_domain_comm_plot

Draw the significant communication between spatial domains on top of the tissue.

Grid-level spatial communication#

plot_xc2grid

Visual check of the cell-to-grid assignment produced by tl.cell2grid.

plot_grid

Draw the grid lines returned by tl.cell2grid as a dotted overlay.

plot_grid_signal_direction

Quiver plot of the grid-level signal directions from tl.signal_direction.

plot_grid_signal_tensor

Draw the grid-level signal orientation tensors from tl.signal_tensor.

Figure helpers#

draw_colorbar

Draw a standalone colorbar, e.g. one shared by several panels.

draw_legend

Draw a standalone cell type legend, e.g. one shared by several panels.