Trim down plotting data when selecting a time range.