13 Dec
2011
13 Dec
'11
6:45 a.m.
On Mon, 12 Dec 2011, Mojca Miklavec wrote:
On Mon, Dec 12, 2011 at 23:17, Hans Hagen wrote:
You have to twist your mide a bit:
\startluacode local x = 10 context.startGNUPLOTscript{ "lua" } context("plot %s",1.2 * x + 3) context.stopGNUPLOTscript() \stopluacode
\starttext \useGNUPLOTgraphic[lua] \stoptext
Oh, I like this one!
Not that it works at the moment, but fixing the module to make it work is doable (which is not to say that I know how to do it).
I have not looked into the internals of gnuplot in a while, but context("\\startGNUplotscript[lua]") context("plot %s", 1.2*x + 3) context("\\stopGNUplotscript") should work. Aditya