pyVIA.plotting_via.animate_streamplot

pyVIA.plotting_via.animate_streamplot(via_object, embedding, density_grid=1, linewidth=0.5, min_mass=1, cutoff_perc=None, scatter_size=500, scatter_alpha=0.2, marker_edgewidth=0.1, smooth_transition=1, smooth_grid=0.5, color_scheme='annotation', other_labels=[], b_bias=20, n_neighbors_velocity_grid=None, fontsize=8, alpha_animate=0.7, cmap_scatter='rainbow', cmap_stream='Blues', segment_length=1, saveto='/home/shobi/Trajectory/Datasets/animation.gif', use_sequentially_augmented=False, facecolor_='white', random_seed=0)[source]

Draw Animated vector plots. the Saved .gif file saved at the saveto address, is the best for viewing the animation as the fig, ax output can be slow

Parameters:
  • via_object – viaobject

  • embedding – ndarray (nsamples,2) umap, tsne, via-umap, via-mds

  • density_grid

  • linewidth

  • min_mass

  • cutoff_perc

  • scatter_size

  • scatter_alpha

  • marker_edgewidth

  • smooth_transition

  • smooth_grid

  • color_scheme – ‘annotation’, ‘cluster’, ‘other’

  • add_outline_clusters

  • cluster_outline_edgewidth

  • gp_color

  • bg_color

  • title

  • b_bias

  • n_neighbors_velocity_grid

  • fontsize

  • alpha_animate

  • cmap_scatter

  • cmap_stream – string of a cmap for streamlines, default = ‘Blues’ (for dark blue lines) . Consider ‘Blues_r’ for white lines OR ‘Greys/_r’ ‘gist_yard/_r’

  • color_stream – string like ‘white’. will override cmap_stream

  • segment_length

Returns:

fig, ax.