summaryrefslogtreecommitdiff
path: root/Master/texmf-dist
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-07-20 20:10:53 +0000
committerKarl Berry <karl@freefriends.org>2023-07-20 20:10:53 +0000
commitfd6eed8905d43eaf335eea49a9e3e51d2a24d58e (patch)
treec66fb3e9c43a110c1e7d3dff79113e9d1448d23f /Master/texmf-dist
parentefdba815e643cf7011e99c659e6f0fb254ef2ebe (diff)
luaplot (20jul23)
git-svn-id: svn://tug.org/texlive/trunk@67685 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r--Master/texmf-dist/doc/lualatex/luaplot/README.txt6
-rw-r--r--Master/texmf-dist/doc/lualatex/luaplot/luaplot.pdfbin147449 -> 147672 bytes
-rw-r--r--Master/texmf-dist/doc/lualatex/luaplot/luaplot.tex27
-rw-r--r--Master/texmf-dist/tex/lualatex/luaplot/luaplot.sty6
4 files changed, 24 insertions, 15 deletions
diff --git a/Master/texmf-dist/doc/lualatex/luaplot/README.txt b/Master/texmf-dist/doc/lualatex/luaplot/README.txt
index 9c3cf8a38bb..fd7337a128c 100644
--- a/Master/texmf-dist/doc/lualatex/luaplot/README.txt
+++ b/Master/texmf-dist/doc/lualatex/luaplot/README.txt
@@ -1,3 +1,9 @@
+# The luaplot package
+
+# version 1.4
+
+# Authors: Chetan Shirore and Ajit Kumar
+
# Introduction
The luaplot package is developed using Lua to plot graphs of real-valued functions of a real variable in LaTeX. It is developed with the MetaPost system and luamplib and luacode packages. It provides an easy way for plotting graphs of standard mathematical functions. There is no particular environment in the package for plotting graphs. It also works inside floating environments of LaTeX like tables and figures. The compilation time to plot several graphs in LaTeX using the luaplot package is significantly less with LuaLaTeX engine.
diff --git a/Master/texmf-dist/doc/lualatex/luaplot/luaplot.pdf b/Master/texmf-dist/doc/lualatex/luaplot/luaplot.pdf
index 1378aa6e29c..0befb7166de 100644
--- a/Master/texmf-dist/doc/lualatex/luaplot/luaplot.pdf
+++ b/Master/texmf-dist/doc/lualatex/luaplot/luaplot.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/lualatex/luaplot/luaplot.tex b/Master/texmf-dist/doc/lualatex/luaplot/luaplot.tex
index a0defde6b63..03928af99fb 100644
--- a/Master/texmf-dist/doc/lualatex/luaplot/luaplot.tex
+++ b/Master/texmf-dist/doc/lualatex/luaplot/luaplot.tex
@@ -102,7 +102,7 @@ withpen<pen expression> | dashed<picture expression>
\begin{lstlisting}[caption={[]}]
clr
\end{lstlisting}
- & Specifies colors for plotting. Colors for different curves are to be given in curly braces separated by comma. The default color is black. Colors can be specified in a variety of ways. Standard colours can be specified by using names such as ``red", ``blue", ``green" etcetera. The RGB format (r,g,b) can also be used. The custom colors can be defined in different ways and can be used with the package. \\
+ & Specifies colors for plotting. Colors for different curves are to be given in curly braces separated by semicolon. The default color is black. Colors can be specified in a variety of ways. Standard colours can be specified by using names such as ``red"; ``blue"; ``green" etcetera. The RGB format (r,g,b) can also be used. \\
\midrule
\begin{lstlisting}[caption={[]}]
plotoptions
@@ -150,30 +150,33 @@ Table \ref{tbl:luaplotex} illustrates plotting graphs of functions with the \ver
xmin=-1, xmax=11,
ymin=-2, ymax=2,
plotpts=1000,
- clr={ 'red, blue' }
+ clr={ 'red; blue' }
]{cos(x),sin(x)}
\end{lstlisting} & \newline \luaplot[
xmin=-1, xmax=11,
ymin=-2, ymax=2,
plotpts=1000,
- clr={ 'red, blue' }
+ clr={ 'red; blue' }
]{cos(x),sin(x)} \\ \midrule
\begin{lstlisting}[caption={[]}]
\luaplot[
-clr={ 'red, blue, green' },
-xmin=-10,xmax=10]
+clr={ 'red; green;
+ (0.58,0.2,0.62)' },
+xmin=-10,xmax=10,
+ymin=-10,ymax=10]
{x^3,-x^3,x}
-\end{lstlisting} & \newline \luaplot[
-clr={ 'red, blue, green' },
-xmin=-10,xmax=10]
+\end{lstlisting} & \newline
+\luaplot[
+clr={ 'red; green; (0.58,0.2,0.62)' },
+xmin=-10,xmax=10,ymin=-10,ymax=10]
{x^3,-x^3,x} \\ \midrule
\begin{lstlisting}[caption={[]}]
\luaplot[xmin=-5,xmax=5,
-clr={'red, blue'}]
+clr={'red; blue'}]
{(2*(x^2)-1)/(x^2-1),1/x}
\end{lstlisting} & \newline \luaplot[xmin=-5,xmax=5,
-clr={'red, blue'}]
+clr={'red; blue'}]
{(2*(x^2)-1)/(x^2-1),1/x} \\
\bottomrule \\
\caption{Plotting graphs with the luaplot command}
@@ -189,7 +192,7 @@ xmax=20,
plotpts=300,
hor='6cm',
ver='5cm',
-clr={'red, blue'},
+clr={'red; blue'},
plotsty={'dashed evenly'},
plotoptions={
[[
@@ -213,7 +216,7 @@ xmax=20,
plotpts=300,
hor='6cm',
ver='5cm',
-clr={'red,blue'},
+clr={'red; blue'},
plotsty={'dashed evenly'},
plotoptions={
[[
diff --git a/Master/texmf-dist/tex/lualatex/luaplot/luaplot.sty b/Master/texmf-dist/tex/lualatex/luaplot/luaplot.sty
index b148c5bdfe9..db1b5e1aeaf 100644
--- a/Master/texmf-dist/tex/lualatex/luaplot/luaplot.sty
+++ b/Master/texmf-dist/tex/lualatex/luaplot/luaplot.sty
@@ -1,9 +1,9 @@
% luaplot package
-% version 1.3
+% version 1.4
% Licensed under LaTeX Project Public License v1.3c or later. The complete license text is available at http://www.latex-project.org/lppl.txt.
%Authors: Chetan Shirore and Ajit Kumar
-\ProvidesPackage{luaplot}[1.3]
+\ProvidesPackage{luaplot}[1.4]
\RequirePackage{xkeyval}
\RequirePackage{luacode}
\RequirePackage{tikz}
@@ -110,7 +110,7 @@ for subexp in string.gmatch(\luastring{#2}, '([^,]+)') do
end
local colortbl={}
local countclr = 1
-for funcolor in string.gmatch(\mop@eight, '[^,]*') do
+for funcolor in string.gmatch(\mop@eight, '[^;]*') do
if funcolor == nil or funcolor=='' then funcolor='black' end
colortbl[countclr] = funcolor
countclr = countclr + 1