texlive[67685] Master/texmf-dist: luaplot (20jul23)

commits+karl at tug.org commits+karl at tug.org
Thu Jul 20 22:10:53 CEST 2023


Revision: 67685
          http://tug.org/svn/texlive?view=revision&revision=67685
Author:   karl
Date:     2023-07-20 22:10:53 +0200 (Thu, 20 Jul 2023)
Log Message:
-----------
luaplot (20jul23)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/lualatex/luaplot/README.txt
    trunk/Master/texmf-dist/doc/lualatex/luaplot/luaplot.pdf
    trunk/Master/texmf-dist/doc/lualatex/luaplot/luaplot.tex
    trunk/Master/texmf-dist/tex/lualatex/luaplot/luaplot.sty

Modified: trunk/Master/texmf-dist/doc/lualatex/luaplot/README.txt
===================================================================
--- trunk/Master/texmf-dist/doc/lualatex/luaplot/README.txt	2023-07-20 20:10:44 UTC (rev 67684)
+++ trunk/Master/texmf-dist/doc/lualatex/luaplot/README.txt	2023-07-20 20:10:53 UTC (rev 67685)
@@ -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.
 

Modified: trunk/Master/texmf-dist/doc/lualatex/luaplot/luaplot.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/lualatex/luaplot/luaplot.tex
===================================================================
--- trunk/Master/texmf-dist/doc/lualatex/luaplot/luaplot.tex	2023-07-20 20:10:44 UTC (rev 67684)
+++ trunk/Master/texmf-dist/doc/lualatex/luaplot/luaplot.tex	2023-07-20 20:10:53 UTC (rev 67685)
@@ -102,7 +102,7 @@
 \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 @@
     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 @@
 plotpts=300,
 hor='6cm',
 ver='5cm',
-clr={'red, blue'},
+clr={'red; blue'},
 plotsty={'dashed evenly'},
 plotoptions={
 [[
@@ -213,7 +216,7 @@
 plotpts=300,
 hor='6cm',
 ver='5cm',
-clr={'red,blue'},
+clr={'red; blue'},
 plotsty={'dashed evenly'},
 plotoptions={
 [[

Modified: trunk/Master/texmf-dist/tex/lualatex/luaplot/luaplot.sty
===================================================================
--- trunk/Master/texmf-dist/tex/lualatex/luaplot/luaplot.sty	2023-07-20 20:10:44 UTC (rev 67684)
+++ trunk/Master/texmf-dist/tex/lualatex/luaplot/luaplot.sty	2023-07-20 20:10:53 UTC (rev 67685)
@@ -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 @@
 end
 local colortbl={}
 local countclr = 1
-for funcolor in string.gmatch(\mop at eight, '[^,]*') do
+for funcolor in string.gmatch(\mop at eight, '[^;]*') do
    if funcolor == nil or funcolor=='' then funcolor='black' end
    colortbl[countclr] = funcolor
    countclr = countclr + 1



More information about the tex-live-commits mailing list.