fix "zeros in ranges" bug

For example, `plot(1:4, xrange=(0,10))`