summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-09-11 21:39:54 +0000
committerKarl Berry <karl@freefriends.org>2018-09-11 21:39:54 +0000
commit4fa20ad9ecd06d8945cdce002fb7228e714ab991 (patch)
treed20fc8b96b193052b6a9f13f3a0c75f3a96c9a2b /Master
parentcd4be1f46517d7a1f09fefa0a0b8fe9f22526e22 (diff)
bezierplot (11sep18)
git-svn-id: svn://tug.org/texlive/trunk@48644 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/lualatex/bezierplot/README2
-rw-r--r--Master/texmf-dist/doc/lualatex/bezierplot/bezierplot-doc.pdfbin251792 -> 251986 bytes
-rw-r--r--Master/texmf-dist/doc/lualatex/bezierplot/bezierplot-doc.tex2
-rwxr-xr-xMaster/texmf-dist/tex/lualatex/bezierplot/bezierplot.lua6
-rw-r--r--Master/texmf-dist/tex/lualatex/bezierplot/bezierplot.sty2
5 files changed, 6 insertions, 6 deletions
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
--- a/Master/texmf-dist/doc/lualatex/bezierplot/bezierplot-doc.pdf
+++ b/Master/texmf-dist/doc/lualatex/bezierplot/bezierplot-doc.pdf
Binary files 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