draw_arrow¶
-
visualize.utils.draw_arrow(morphology, ax, highlight_section=
None, highlight_x=None, highlight_arrow_kwargs=None, arrow_size=50)¶ Highlight a morphology section with an
Arrow3D.This method is used by
CellMorphologyVisualizerto annotate morphology sections.- Parameters:¶
- morphology : pd.DataFrame¶
The morphology dataframe containing the coordinates of the sections.
- ax : matplotlib.axes.Axes¶
The matplotlib axes object to draw the arrow on.
- highlight_section : int, optional¶
The section index to highlight. If None, no section is highlighted. Default is
None.- highlight_x : float, optional¶
The x-coordinate within the section to place the arrow. If None, the arrow is placed at the section’s midpoint. Default is
None.- highlight_arrow_kwargs : dict, optional¶
Additional keyword arguments to pass to the
Arrow3Dconstructor. Default isNone.- arrow_size : int, optional¶
The size of the arrow. Default is 50.
- Returns:¶
None
Documentation unclear, incomplete, broken or wrong? Let us know