|
From: Christoph B. <us...@be...> - 2014-11-08 07:21:02
|
Am 08.11.2014 04:13, schrieb Philipp K. Janert: > > I can use arrows when I set the terminal option > "gparrows". I tried this after seeing something > about "misusing the angle value" in the doc. I am > not sure, though, what the doc is really saying - > what should I do if I want to use Lua/Tikz-arrows? There had been problems with some changes in the general arrow drawing code. That is fixed in the 5.0 branch but wasn't yet included in the rc2: http://sourceforge.net/p/gnuplot/bugs/1476/ (at the moment I cannot find the related post in some other bug or on the mailing list concerning the lua terminal). There have also been other additions and fixes to the lua/tikz terminal after RC2. > Finally, how do I include Tex constructs in text labels > (which, I assume, is the whole point). The documentation > does not seem to be mention that at all. I tried the > same syntax as in the epslatex terminal, namely simply > including Tex code: > set label "Hello $\int e^{-x}$" at 0,0 > but this only led to one of those tex files that > don't compile. (Session 6) For me that file compiles, but gives the wrong results since you don't escape the backslash. The following works fine for me (current 5.0 branch) plot sin(x) set label "Hello $\\int e^{-x}$" at 0,0 set t tikz standalone set o 't7.tex' replot > plot sin(x) > set arrow from -5,-.4 to 2,.6 > set t tikz standalone > set o 't4.tex' > replot > .../rc52/staging/share/gnuplot/5.0/lua/gnuplot-tikz.lua:346: > attempt to concatenate local 'direction' (a nil value) stac > > BUT THEN: > > I wish to quit gnuplot using ^D, but it doesn't terminate, > instead it prints FOREVER (unstoppable, must close window): > > Missing Lua context! No script? That error with the arrows is fixed. However, the general problem remains, that gnuplot crashes when an error in the lua script appears. I have no idea how to fix this. I haven't worked much with the tikz terminal, but made some additions and fixes recently. The mention of 'misuse of the angle parameter' is about using the angle parameter as index for an own arrow style which isn't in the list of predefined ones. I do also have to find out some 'outstanding' features of the tikz terminal. As far as I know you can also define custom line styles, which now shouldn't be so outstanding, but before adding custom dash styles it was. Christoph |