ax[1].plot(range code example Example: subplot matplotlib set limits ax1.set_xlim([0,3000]) ax1.set_ylim([0,20])