dot_files/.viktor/bundle/xptemplate/ftplugin/gnuplot/gnuplot.xpt.vim
2017-07-09 00:21:01 +03:00

34 lines
803 B
VimL

XPTemplate priority=lang
let s:f = g:XPTfuncs()
XPTinclude
\ _common/common
XPT skeleton " basic file skeleton
set title "`plotTitle^"
set xlabel "`axisLabel^"
set ylabel "`ordinateLabel^"
plot "`valueFile^" title "`valueTitle^" `using...{{^using `columns^ `}}^ with linespoint
XPT label " axis labels
set xlabel "`axisLabel^"
set ylabel "`ordinateLabel^"
XPT fun " ... ( ... ) = ...
`funName^( `args^ )=`cursor^
XPT range " set xrange ...; set yrange ...
set xrange [`xMin^:`xMax^]
set yrange [`yMin^:`yMay^]
XPT tics " set xtics & ytics
set xtics `xTics^
set ytics `yTics^
XPT term " Change output terminal
XSET termMode=Choose(['svg', 'canvas','latex', 'postscript', 'x11','eps', 'xterm'])
set terminal `termMode^ enhanced`size...{{^ size `width^ `height^`}}^
set output "`filename^"