skeleton_keys.plotting.plot_cortical_cell#

skeleton_keys.plotting.plot_cortical_cell(ax, sk, ld=None, title=None)#

Plot a cortical neuron according to ivscc style plot

Parameters:
  • ax (matplotlib.axes) – Axes object in which to put plot

  • sk (allensdk.core.swc.Morphology) – Morphology object skeleton read with allensdk. Assumes pia is defined as y = 0 and that the skeleton has negative y values which get more negative as the cell gets lower in cortex, and has compartment labels with soma as 1, axon as 2, basal dendrite as 3, and apical dendrite as 4.

  • ld (dict) – Dictionary of layer distances, where values are positive indicating distance of the top of the layer fom pia

  • title (str, optional) – Title for the plot