neurom.view.commonΒΆ

Functionality for styling plots

Functions

dict_if_none return an empty dict if arg is None
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_figure Function to be used for viewing - plotting, to initialize the matplotlib figure - axes.
plot_cylinder plot a 3d cylinder
plot_labels Sets the labels options of a matplotlib plot
plot_legend Function that defines the legend options of a matplotlib plot.
plot_sphere Plots a 3d sphere, given the center and the radius.
plot_style 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 Set title options of a matplotlib plot
project_cylinder_onto_2d take cylinder defined by start/end, and project it onto the plane
save_plot Generates a figure file in the selected directory.
update_plot_limits Sets the limit options of a matplotlib plot.