xxxxxxxxxx
axes.set_xlim([xmin, xmax])
axes.set_ylim([ymin, ymax])
axes.set_zlim([zmin, zmax])
Get the current axes with gca() and then set the limits
xxxxxxxxxx
ax = plt.gca()
ax.set_xlim([xmin, xmax])
ax.set_ylim([ymin, ymax])
xxxxxxxxxx
axes = plt.gca()
axes.set_xlim([xmin,xmax])
axes.set_ylim([ymin,ymax])