quick notes on using gnuplot’s lua terminal
set term tikz fulldoc color solid createstyle
set output 'tmp.tex'
p x**2 tit '$x^2$'
then in shell,
(1) ‘createstyle’ is crucial, otherwise tex will complain about missing ‘gnuplot-lua-tikz.sty’. This doesn’t seem to be mentioned in the first several google results
(2) I have to comment out the ‘utf8x’ package in the resulting tmp.tex. That may just be a problem with my tex environment