Add negative ranges

This commit is contained in:
Michael K. Borregaard 2017-09-29 09:18:20 +02:00
parent 4395718e0c
commit 07843c00d3

View File

@ -363,9 +363,10 @@ end
xmin, xmax = try
axis_limits(plt[1][:xaxis])
catch
tryrange(f, [-5,-1,0,0.01]), tryrange(f, [5,1,0.99])
xm = tryrange(f, [-5,-1,0,0.01])
xm, tryrange(f, filter(x->x>xm, [5,1,0.99, 0, -0.01]))
end
f, xmin, xmax
end