issue #6893: plot does not use the given range.

Regarding issue #6893: plot does not use the given range.