Changes

Jump to navigation Jump to search
506 bytes added ,  23:58, 13 July 2020
lmtx example for gnuplot inclusion
\useGNUPLOTgraphic[tan]
\useGNUPLOTgraphic[sin][width=10cm]
</texcode>
 
== Example with externalfigure ==
 
In [[LMTX]] we can use externalfigure for gnuplot files like this:
 
m-gnuplot-demo.gp
<texcode>
set format xy "$%g$"
 
set title 'This is a plot of $y=\\sin(x)$'
set xlabel 'This is the $x$ axis'
set ylabel 'This is the $y$ axis'
 
plot [0:6.28] [0:1] sin(x)
</texcode>
 
Then including it in the .tex file with externalfigure and svg conversion:
 
<texcode>
\usemodule[gnuplot]
 
\starttext
\externalfigure[m-gnuplot-demo.gp][conversion=svg,width=4cm]
\stoptext
</texcode>
174

edits

Navigation menu