neurom.view.common.get_figure

neurom.view.common.get_figure(new_fig=True, subplot='111', params=None)[source]

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

Parameters:
  • new_fig (bool) – Defines if a new figure will be created, if false current figure is used
  • subplot (tuple or matplolib subplot specifier string) – Create axes with these parameters
  • params (dict) – extra options passed to add_subplot()
Returns:

Matplotlib Figure and Axes