From 4fa20ad9ecd06d8945cdce002fb7228e714ab991 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 11 Sep 2018 21:39:54 +0000 Subject: bezierplot (11sep18) git-svn-id: svn://tug.org/texlive/trunk@48644 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/lualatex/bezierplot/bezierplot.lua | 6 +++--- Master/texmf-dist/tex/lualatex/bezierplot/bezierplot.sty | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'Master/texmf-dist/tex/lualatex/bezierplot') 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 diff --git a/Master/texmf-dist/tex/lualatex/bezierplot/bezierplot.sty b/Master/texmf-dist/tex/lualatex/bezierplot/bezierplot.sty index be4c89550e5..4584777e476 100644 --- a/Master/texmf-dist/tex/lualatex/bezierplot/bezierplot.sty +++ b/Master/texmf-dist/tex/lualatex/bezierplot/bezierplot.sty @@ -1,5 +1,5 @@ \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{bezierplot}[2018/07/23 bezierplot] +\ProvidesPackage{bezierplot}[2018/09/03 bezierplot] \RequirePackage{xparse} \RequirePackage{iftex} \ifLuaTeX -- cgit v1.2.3