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
  • no_limits (Optional[boolean]) – Defines the presence of plot limits in the figure. Default value is False.
  • no_xlim (Optional[boolean]) – Defines the presence of plot x-limits in the figure. Default value is False.
  • no_ylim (Optional[boolean]) – Defines the presence of plot y-limits in the figure. Default value is False.
  • xlim (Optional[list of two floats]) – Defines the min and the max values in x-axis. Default in None
  • ylim (Optional[list of two floats]) – Defines the min and the max values in y-axis. Default in None
Returns:

Matplotlib figure, axes