pyyeti.ytools.axis_equal_3d

pyyeti.ytools.axis_equal_3d(ax, buffer_space=10)[source]

Set equal axes for 3d plot

Parameters:
  • ax (axes object) – An axes object with a 3d projection

  • buffer_space (scalar) – Percent of maximum limit (x, y, or z) to use for buffer room.

Notes

Since matplotlib doesn’t have a 3d version of ax.axis('equal'), this routine simply checks the current limits, and adjusts all axes to be equal. Therefore, for this to work properly, you must call this routine after you’ve plotted all your data.