neurom.view.common.plot_legend

neurom.view.common.plot_legend(ax, no_legend=True, legend_arg=None)[source]

Function that defines the legend options of a matplotlib plot.

Parameters:
  • ax – matplotlib axes
  • no_legend (bool) – Defines the presence of a legend in the figure
  • legend_arg (dict) – Addition arguments for matplotlib.legend() call