neurom.view.common.get_figure

neurom.view.common.get_figure(new_fig=True, new_axes=True, subplot=False, params=None, no_axes=False)

Function to be used for viewing - plotting, to initialize the matplotlib figure - axes.

new_fig : boolean
Defines if a new figure will be created. If False the current figure is returned. Default is True.
subplot : subplot or False
Defines if a subplot will be generated. If False the subplot is the standard 111. Default is False.
params: dict
If empty dictonary no supplementary parameters will be used. If dict not empty the parameters will be passed to the initialization of the axes. Default value is {}
no_axes: boolean
Defines the output of the function: If False the axes is returned. If True the figure is returned. Default value is False.
Returns:Returns a figure if no_axes is True, or axes if no_axes is False.
Return type:figure or axes