neat.MorphTree.make_x_axis

MorphTree.make_x_axis(dx=10.0, node_arg=None, loc_arg=None, scheme='iterator')[source]

Create a set of locs suitable for serving as the x-axis for 1D plotting. The neurons is put on a 1D axis with a depth-first ordering.

Parameters:
  • dx (float) – target separation between the plot points (micron)

  • node_arg – see documentation of MorphTree.convert_node_arg_to_nodes The nodes on which the locations for the x-axis are distributed. When this is given as a list of nodes, assumes a depth first ordering.

  • loc_arg (list of locs or string) – if list of locs, these locs will be used as x-axis, if string, name of set of locs on the morphology that will be used as x-axis

  • scheme (str (default: 'iterator')) –

    scheme for coloring the nodes. Options are:

    ’iterator’: colors nodes in depth-first order ‘depth’: colors nodes based on distance to leafs ‘random’: colors nodes randomly

    startnode: neat.MorphNode (optional)

    node from which to start coloring. If None, starts from root