Plotting on subintervals