fix bug in oplot for large window

- when window was larger than range of function,
the graph was empty, due to an error in clip_array returns.