scPyviewer.plot_embedding_3d#

scPyviewer.plot_embedding_3d(ds, color=None, gene=None, embedding=None, figsize=(7.0, 6.0), dpi=150, elev=22, azim=-60, point_size=4.0, alpha=0.8, cmap='viridis', title=None, title_fontsize=12, label_fontsize=9, tick_fontsize=7, legend_fontsize=7, colorbar_fontsize=8, font_family=None)[source]#

3-D scatter of the first three dimensions of an embedding.

Parameters:
  • color (str, optional) – obs column (categorical) for per-group colouring.

  • gene (str, optional) – Gene name; expression drives a continuous colour scale.

  • embedding (str, optional) – Embedding key in obsm with at least 3 dimensions (e.g. a 3-component UMAP/PCA). Auto-selected if None.

  • elev (float) – 3-D view elevation and azimuth angles in degrees.

  • azim (float) – 3-D view elevation and azimuth angles in degrees.

  • point_size (float) – Marker size.

  • alpha (float) – Marker transparency.

  • cmap (str) – Colormap for gene / continuous colouring.

  • title (str, optional) – Figure title.

  • title_fontsize (float) – Font sizes for the title, axis labels, ticks, legend, and colorbar (label_fontsize, tick_fontsize, legend_fontsize, colorbar_fontsize).

  • font_family (str, optional) – Font family for this figure only.

  • ds (Dataset)

  • figsize (tuple)

  • dpi (int)

  • label_fontsize (float)

  • tick_fontsize (float)

  • legend_fontsize (float)

  • colorbar_fontsize (float)