axes.set_xlim([xmin, xmax]) axes.set_ylim([ymin, ymax]) axes.set_zlim([zmin, zmax])
ylim() Function. The ylim() function in pyplot module of matplotlib library is used to get or set the y-limits of the current axes