diff options
author | Karl Berry <karl@freefriends.org> | 2018-09-11 21:39:54 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-09-11 21:39:54 +0000 |
commit | 4fa20ad9ecd06d8945cdce002fb7228e714ab991 (patch) | |
tree | d20fc8b96b193052b6a9f13f3a0c75f3a96c9a2b /Master/texmf-dist/tex/lualatex/bezierplot/bezierplot.lua | |
parent | cd4be1f46517d7a1f09fefa0a0b8fe9f22526e22 (diff) |
bezierplot (11sep18)
git-svn-id: svn://tug.org/texlive/trunk@48644 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/bezierplot/bezierplot.lua')
-rwxr-xr-x | Master/texmf-dist/tex/lualatex/bezierplot/bezierplot.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/lualatex/bezierplot/bezierplot.lua b/Master/texmf-dist/tex/lualatex/bezierplot/bezierplot.lua index 12574c6eef0..af7dd887b85 100755 --- a/Master/texmf-dist/tex/lualatex/bezierplot/bezierplot.lua +++ b/Master/texmf-dist/tex/lualatex/bezierplot/bezierplot.lua @@ -1,6 +1,6 @@ #!/usr/bin/env lua -- Linus Romer, published 2018 under LPPL Version 1.3c --- version 1.2 2018-07-23 +-- version 1.3 2018-09-03 abs = math.abs acos = math.acos asin = math.asin @@ -646,8 +646,8 @@ function bezierplot(functionstring,xminstring,xmaxstring,yminstring,ymaxstring,s x = xmax end local y = f(x) - if (y >= ymin-yerror and ymin ~= -huge or y > ymin and ymin == -huge) - and (y <= ymax+yerror and ymax ~= huge or y < ymax and ymax == huge) + if (y >= ymin-.1*yerror and ymin ~= -huge or y > ymin and ymin == -huge) + and (y <= ymax+.1*yerror and ymax ~= huge or y < ymax and ymax == huge) then -- inside if outside then -- if it was outside before outside = false |