Add following pre before savefig:
ax.auto_scale_xyz([0, 500], [0, 500], [0, 0.15])
If you want no square axis:
edit the
get_projfunction inside site-
packagesmpl_toolkitsmplot3daxes3d.py:
xmin, xmax = np.divide(self.get_xlim3d(), self.pbaspect[0])ymin, ymax = np.divide(self.get_ylim3d(), self.pbaspect[1])zmin, zmax = np.divide(self.get_zlim3d(), self.pbaspect[2])
then add one line to set pbaspect:
ax = fig.gca(projection = '3d')ax.pbaspect = [2.0, 0.6, 0.25]



