neurom.view.common.plot_limits

neurom.view.common.plot_limits(fig, ax, **kwargs)

Function that defines the limit options of a matplotlib plot.

Parameters:
  • fig (matplotlib figure) –
  • ax (matplotlib axes) –
  • Options
  • -------
  • no_limits (boolean) – Defines the presence of plot limits in the figure. Default value is False.
  • no_xlim (boolean) – Defines the presence of plot x-limits in the figure. Default value is False.
  • no_ylim (boolean) – Defines the presence of plot y-limits in the figure. Default value is False.
  • xlim (list of two floats) – Defines the min and the max values in x-axis. Default in None
  • ylim (list of two floats) – Defines the min and the max values in y-axis. Default in None
Returns:

figure_output

Return type:

figure, axes