neurom.view.common.update_plot_limits

neurom.view.common.update_plot_limits(ax, white_space)[source]

Sets the limit options of a matplotlib plot.

Parameters:
  • ax – matplotlib axes
  • white_space (float) – whitespace added to surround the tight limit of the data

Note: This relies on ax.dataLim (in 2d) and ax.[xy, zz]_dataLim being set in 3d