neurom.view.common.plot_legend¶
-
neurom.view.common.
plot_legend
(fig, ax, **kwargs)¶ Function that defines the legend options of a matplotlib plot.
Parameters: - fig – matplotlib figure
- ax – matplotlib axes
- no_legend (Optional[boolean]) – Defines the presence of a legend in the figure. If True the legend will not be included in the Figure. Default value is True.
- legend_arg (Optional[dict]) – Defines the arguments that will be passsed into matplotlib as legend arguments. Default value is None.
Returns: Matplotlib figure, axes