skeleton_keys.plotting.plot_layer_polygon#

skeleton_keys.plotting.plot_layer_polygon(ax, surfaces_and_paths)#

Plot the surface and layer drawings

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

  • surfaces_and_paths (dictionary) – Dictionary of surface and path dictionaries. The dictionary is expected to have the keys ‘pia_path’, ‘wm_path’, ‘soma_path’, and ‘layer_polygons’. The ‘*_path’ values are dictionaries that have ‘resolution’ and ‘path’ elements, while ‘layer_polygons’ is a list of dictionaries that also have ‘path’ elements. Each ‘path’ is a 2D array of coordinates.