Visualization Utilities#
The deepspatial.vis_utils module provides a comprehensive suite of plotting tools tailored for 3D spatial transcriptomics. It supports both publication-quality static rendering via matplotlib and dynamic, browser-based exploration via plotly and ipywidgets.
Static Plotting#
Generate high-resolution, static visualizations optimized for publications and reports. These functions support rendering full 3D scatter plots, simulating physical tissue sectioning (virtual slices), and projecting 3D volumes onto 2D orthogonal planes.
Generate a static 3D scatter plot colored by categorical labels. |
|
Simulate physical sectioning and generate a virtual 2D/3D slice plot. |
|
Generate static 2D orthogonal projections (XY, XZ, YZ) of the 3D data. |
|
Render a smoothed stacked area chart representing cell proportions along the Z-axis. |
Interactive Plotting#
Browser-based, interactive rendering built on plotly and Jupyter Widgets. These tools allow users to dynamically rotate, zoom, and slice through the reconstructed 3D tissue volumes in real-time.
Generate an interactive Plotly 3D scatter plot for categorical metadata. |
|
Generate an interactive Plotly 3D scatter plot for continuous gene expression. |
|
Generate a Jupyter widget for dynamically slicing and projecting 3D data onto a 2D plane. |