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
  • xlim (Optional[list of two floats]) – Defines the min and the max values in x-axis. To use default limits select None.
  • ylim (Optional[list of two floats]) – Defines the min and the max values in y-axis. To use default limits select None.
  • zlim (Optional[list of two floats]) – Defines the min and the max values in z-axis. To use default limits select None.
Returns:

Matplotlib figure, axes