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/doc/lualatex/bezierplot/README | 2 +- .../doc/lualatex/bezierplot/bezierplot-doc.pdf | Bin 251792 -> 251986 bytes .../doc/lualatex/bezierplot/bezierplot-doc.tex | 2 +- .../tex/lualatex/bezierplot/bezierplot.lua | 6 +++--- .../tex/lualatex/bezierplot/bezierplot.sty | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/doc/lualatex/bezierplot/README b/Master/texmf-dist/doc/lualatex/bezierplot/README index 8b004c0a208..38f7ba74266 100644 --- a/Master/texmf-dist/doc/lualatex/bezierplot/README +++ b/Master/texmf-dist/doc/lualatex/bezierplot/README @@ -8,7 +8,7 @@ points such as extreme points and inflection points and reduces the number of used points. VERSION: -1.2 2018-07-23 +1.3 2018-09-03 LICENSE: The package and the program are distributed on CTAN under the terms of diff --git a/Master/texmf-dist/doc/lualatex/bezierplot/bezierplot-doc.pdf b/Master/texmf-dist/doc/lualatex/bezierplot/bezierplot-doc.pdf index a62218abbf3..a74e699da23 100644 Binary files a/Master/texmf-dist/doc/lualatex/bezierplot/bezierplot-doc.pdf and b/Master/texmf-dist/doc/lualatex/bezierplot/bezierplot-doc.pdf differ diff --git a/Master/texmf-dist/doc/lualatex/bezierplot/bezierplot-doc.tex b/Master/texmf-dist/doc/lualatex/bezierplot/bezierplot-doc.tex index 680d72dfdbb..a079bce18cf 100644 --- a/Master/texmf-dist/doc/lualatex/bezierplot/bezierplot-doc.tex +++ b/Master/texmf-dist/doc/lualatex/bezierplot/bezierplot-doc.tex @@ -116,7 +116,7 @@ lua bezierplot.lua "3*x^0.8+2" \end{verbatim} will return \begin{verbatim} -(0,2) .. controls (0.0168,2.1905) and (0.2073,3.0978) .. (1.0004,5.001) +(0,2) .. controls (0.03,2.282) and (0.268,3.244) .. (1,5) \end{verbatim} You can set the window of the graph and the number of samples as follows: \begin{verbatim} 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