neurom.view.commonΒΆ

Module containing the common functionality to be used by view-plot modules.

Functions

figure_naming Helper function to define the strings that handle pre-post conventions for viewing - plotting title and saving options.
generate_cylindrical_points Generate a 3d mesh of a cylinder with start and end points, and varying radius
get_color If treecolor is None returns the color depending on the type, otherwise it returns the treecolor.
get_figure Function to be used for viewing - plotting, to initialize the matplotlib figure - axes.
plot_cylinder plot a 3d cylinder
plot_labels Function that defines the labels options of a matplotlib plot.
plot_legend Function that defines the legend options of a matplotlib plot.
plot_limits Sets the limit options of a matplotlib plot.
plot_sphere Plots a 3d sphere, given the center and the radius.
plot_style Function to set the basic options of a matplotlib figure, to be used by viewing - plotting functions.
plot_ticks Function that defines the labels options of a matplotlib plot.
plot_title Function that defines the title options of a matplotlib plot.
project_cylinder_onto_2d take cylinder defined by start/end, and project it onto the plane
save_plot Function to be used for viewing - plotting to save a matplotlib figure.