Macro Reference
Range Commands
range <AXIS> <min> <max>rescale [AXISGROUP]upscale <AXISGROUP> [factor]downscale <AXISGROUP> [factor]
Buffer Commands
select <BUFFER>setcurrent <number>invertselectionhide <BUFFER>show <BUFFER>delete <BUFFER>duplicate <BUFFER>setcomment <BUFFER> <text>addcomment <BUFFER> <text>getcomment <buffer> $<var>setsource <BUFFER> <text>addsource <BUFFER> <text>getsource <buffer> $<var>belongx <BUFFER> <axis>belongy <BUFFER> <axis>addvalue <buffer> <x value> <y value> [x error] [y error]setxvalue <buffer> <index> <value>setxerror <buffer> <index> <value>setyvalue <buffer> <index> <value>setyerror <buffer> <index> <value>rmvalue <buffer> <index>newbuffermoveup <BUFFER>movedown <BUFFER>movetop <BUFFER>movebottom <BUFFER>
Control Commands
if <expr> <operator> <expr>elseendifloop <RANGE>bufferloop <BUFFER>dataloop <buffer> [step]endlooptimer <interval> [count]stoptimerperltimeout <seconds>
Interactive Commands
ask <text>askoption <text> <button1> <button0>browseinput [text]print <argument> ...sleep <seconds>setwarn <BOOL>
Calculation Commands
fg <axis> <min> <max> <steps> <expr>bcalc <buffer1> <operator> <buffer2> calc <data> <expr> <BUFFER>swapxy <BUFFER>sortx <BUFFER>sorty <BUFFER>normx <ref1> <ref2> <new1> <new2> <BUFFER>normy <ref1> <ref2> <new1> <new2> <BUFFER>movex <from> <to> <BUFFER>movey <from> <to> <BUFFER>cutoutsidex <min> <max> <BUFFER>cutinsidex <min> <max> <BUFFER>cutoutsidey <min> <max> <BUFFER>cutinsidey <min> <max> <BUFFER>calcint <min> <max> <BUFFER>linreg <min> <max> <BUFFER>logreg <min> <max> <BUFFER>expreg <min> <max> <BUFFER>linbg <a> <b> <BUFFER>smooth <factor> <BUFFER>fftsmooth <factor> <BUFFER>datareduction <n> <BUFFER>spline <points> <strength> <BUFFER>fft <windowing> <BUFFER>diff <interval> <BUFFER>integrate <BUFFER>setxval <BUFFER> <index> <value>setyval <BUFFER> <index> <value>setxeval <BUFFER> <index> <value>setyeval <BUFFER> <index> <value>
Style Commands
margins <left> <right> <bottom> <top>windowsize <width> <height>drawbg <bool>drawmargin <bool>drawframe <bool>bgcolor <c> <c> <c> [a]bgcolor <COLOR>margincolor <c> <c> <c> [a]margincolor <COLOR>framecolor <c> <c> <c> [a]framecolor <COLOR>framewidth <width>framestyle <style>forceframe <bool>onlyactiveaxis <bool>framearrows <bool>crossarrows <type>framearrowsize <size>framearrowtype <type>
Data Style Commands
bstyle <lines> <symblos> <fill> <ybars> <xbar> <ystick> <xstick> <dots> <hist> <fhist> <BUFFER>bstyleclear <BUFFER>bstylelines <bool> <BUFFER>bstylesymbols <bool> <BUFFER>bstylefill <bool> <BUFFER>bstyleybars <bool> <BUFFER>bstylexbars <bool> <BUFFER>bstyleysticks <bool> <BUFFER>bstylexsticks <bool> <BUFFER>bstyledots <bool> <BUFFER>bstylehist <bool> <BUFFER>bstylefhist <bool> <BUFFER>bcolor <c> <c> <c> <BUFFER> [a]bcolor <COLOR> <BUFFER>bfillcolor <c> <c> <c> <BUFFER> [a]bfillcolor <COLOR> <BUFFER>bbarcolor <c> <c> <c> <BUFFER> [a]bbarcolor <COLOR>bstickcolor <c> <c> <c> <BUFFER> [a]bstickcolor <COLOR> <BUFFER>blinewidth <linewidth> <BUFFER>blinepattern <pattern> <BUFFER>bpatternwidth <patternwidth> <BUFFER>bsymbol <symbol> <BUFFER>bsymbolsize <symbolsize> <BUFFER>bsymbolfill <bool> <BUFFER>bsticksize <sticksize> <BUFFER>bsticksabs <bool> <BUFFER>bdynsize <BUFFER> [expr]bxerrorval <error> <BUFFER>bxerror <type> <BUFFER>byerrorval <error> <BUFFER>byerror <type> <BUFFER>berrorlinewidth <linewidth> <BUFFER>berrorcolor <c> <c> <c> <BUFFER> [a]berrorcolor <COLOR>dirarrows <bool> <BUFFER>dirarrowsize <size> <BUFFER>dirarrowlength <length> <BUFFER>dirarrowtype <type> <BUFFER>blegend <bool> <BUFFER>bfreex <bool> <BUFFER>bfreey <bool> <BUFFER>bfreexrange <min> <max> <BUFFER>bfreeyrange <min> <max> <BUFFER>barytop <bool> <BUFFER>barybottom <bool> <BUFFER>barxleft <bool> <BUFFER>barxright <bool> <BUFFER>
Axis Style Commands
setaxis <x axis 1> <y axis 1> <x axis 2> <y axis 2>ascalstart <AXIS> <start>ascalend <AXIS> <end>asetreverse <AXIS> <bool>atickdist <AXIS> <dist>aminsteps <AXIS> <steps>atimeformat <AXIS> <format>atrigger <AXIS> <trigger>ascalexpr <AXIS> <expr>aexpoffset <AXIS> <offset>adecplaces <AXIS> <n>adecplacesauto <AXIS> <bool>acuttrailingzeros <AXIS> <bool>aformat <AXIS> <AXISFORMAT>anumberformat <AXIS> <NUMBERFORMAT>asetsmalllogzero <AXIS> <bool>atext <AXIS> <text>anumfont <AXIS> <font> <size>anumoffset <AXIS> <offset>anumalign <AXIS> <align>anumangle <AXIS> <angle>atextfont <AXIS> <font> <size>atextoffset <AXIS> <offset>atextoffsetwindow <AXIS> <bool>asetnum <AXIS> <bool>asettext <AXIS> <bool>asetfliptext <AXIS> <bool>atextcolor <AXIS> <c> <c> <c> [a]atextcolor <AXIS> <COLOR>asetzeroline <AXIS> <bool>azerolinecolor <AXIS> <c> <c> <c> [a]azerolinecolor <AXIS> <COLOR>aticklength <AXIS> <length>aminticklength <AXIS> <length>atickwidth <AXIS> <width>amintickwidth <AXIS> <width>asetticks <AXIS> <bool>asetminticks <AXIS> <bool>asetticksbothsides <AXIS> <bool>asetminticksbothsides <AXIS> <bool>atickcolor <AXIS> <c> <c> <c> [a]atickcolor <AXIS> <COLOR>amintickcolor <AXIS> <c> <c> <c> [a]amintickcolor <AXIS> <COLOR>atickstyle <AXIS> <style>asetgrid <AXIS> <bool>asetmingrid <AXIS> <bool>agridcolor <AXIS> <c> <c> <c> [a]agridcolor <AXIS> <COLOR>amingridcolor <AXIS> <c> <c> <c> [a]amingridcolor <AXIS> <COLOR>agridwidth <AXIS> <width>amingridwidth <AXIS> <width>agridpattern <AXIS> <pattern>amingridpattern <AXIS> <pattern>agridfront <AXIS> <bool>amingridfront <AXIS> <bool>alabel <AXIS> <number> <replacement>aclearlabels <AXIS>
Legend Commands
setlegend <bool>legendpos <x> <y>setlegendbg <bool>setlegendhorizontal <bool>legendalign <align>legendlength <length>legendspace <space>legendcolor <c> <c> <c> [a]legendcolor <COLOR>legendbgcolor <c> <c> <c> [a]legendbgcolor <COLOR>legendfont <font> <font size>
Text & Graphic Commands
text <tag> <x> <y> <font> <font size> <text> [c] [c] [c] [angle] [align] [pos] [offset] [cb] [cb] [cb]-<
ftext <tag> <COOR> <x> <y> <font> <font size> <text> [c] [c] [c] [angle] [align] [tbalign] [cb] [cb] [cb]qtext <COOR> <x> <y> <text> [angle] [align] [tbalign] [COLOR]ptext <text> <pos> [angle] [offset] [COLOR]
rect <tag> <COOR> <x> <y> <w> <h> [linewidth] [dash] [c] [c] [c]rect <tag> <COOR> <x> <y> <w> <h> [linewidth] [dash] [COLOR]frect <tag> <COOR> <x> <y> <w> <h> [linewidth] [dash] [c] [c] [c] [cf] [cf] [cf]frect <tag> <COOR> <x> <y> <w> <h> [linewidth] [dash] [COLOR] [COLOR]circle <tag> <COOR> <x> <y> <w> <h> [linewidth] [dash] [c] [c] [c]circle <tag> <COOR> <x> <y> <w> <h> [linewidth] [dash] [COLOR]fcircle <tag> <COOR> <x> <y> <w> <h> [linewidth] [dash] [c] [c] [c] [cf] [cf] [cf]fcircle <tag> <COOR> <x> <y> <w> <h> [linewidth] [dash] [COLOR] [COLOR]arrow <tag> <COOR> <x1> <y1> <x2> <y2> <a1> <a2> <at> <as> [linewidth] [dash] [c] [c] [c]arrow <tag> <COOR> <x1> <y1> <x2> <y2> <a1> <a2> <at> <as> [linewidth] [dash] [COLOR]line <tag> <COOR> <x1> <y1> <x2> <y2> [linewidth] [dash] [c] [c] [c]line <tag> <COOR> <x1> <y1> <x2> <y2> [linewidth] [dash] [COLOR]bgraphic [tag]rmtext [tag]rmgraphic [tag]defaultfont <font> <font size>defaultcolor <c> <c> <c>defaultcolor <COLOR>
Document Commands
newcloseopen <filename>savesaveas <filename>savepng <filename> [resolution]savejpg <filename> [resolution]savepdf <filename>saveeps <filename>printdocexport <filename> <mode> <BUFFER>importcommasep <BOOL>importperiodsep <BOOL>importnotime <BOOL>importfirstrowcomment <BOOL>importnoxcol <BOOL>importxcol <column>
import <filename> <mode> [separator] [xcol] [noxcol] [comment] [ignore] [comment sequence] [only number lines] [time format] [comma separator] [period separator] [timezone] [white spaces] [first row titles]binaryimport <filename> <type> <mode> <swap> <columns> [comment]mysqlimport <host> <db> <user> <password> <port> <sql>perlimport <filename> [name]perlfilter <BUFFER> [name]subview <width> <height> <x> <y>sizeview <width> <height> <x> <y>changeview <subview number>deleteview <subview number | all>
Miscellaneous Commands
colormode <mode>listexitclrclrvarsetvar <var> <expr><var>=<expr>setstring <var> <value>$<var>=<expr>setutimestring <time> <format> <var>setmtimestring <time> <format> <var>eval <name> <expr>format <name> <format> <expr> ... <expr>forecast <lon> <lat> [field]