GNUPLOT 除了提供绘制图形所需的指令外,尚提供许多有用的指令。如
cd "<directory-name>"
例如
cd 'subdir' # 改变至子目录。
cd ".." # 改变至上一层目录。
pwd 显示目前的工作目录于萤幕上。
shell 后,回到 shell
的提示符号下。欲回到 GNUPLOT 时,输入 exit 或 Ctl-d 即可。如果只是
执一个 shell 命令,只要在 shell 命令之前加 ! 即可。
如执行 !pwd 显示目前的工作目录。
在撰写 GNUPLOT 命令时,可适当加入注解以帮助我们了解。方法是在 欲加注解之处,先写 # 则 GNUPLOT 忽略其后的文字。但若 # 是在引号之内, 此时为一单纯字元。
GNUPLOT 提供方便使用者操作的指令。
clear 时,将萤幕及输出清除。
help {<topic>} 。
print <expression>
将数学式的值印出。
pause <time> {"<string>"}
其中 <time> 可以是一整数或表示式,表示 GNUPLOT 停留的时间。 若为 -1 则 GNUPLOT 停留至按下 "carriage return" 为止。若为 0 则 GNUPLOT 不停留。以下是一些例子:
pause -1 # Wait until a carriage return is hit
pause 3 # Wait three seconds
pause -1 "Hit return to continue"
pause 10 "Isn't this pretty? It's a cubic-spline."
Character Function
Line Editing
^B move back a single character.
^F move forward a single character.
^A move to the beginning of the line.
^E move to the end of the line.
^H, DEL delete the previous character.
^D delete the current character.
^K delete from current position to the end of line.
^L, ^R redraw line in case it gets trashed.
^U delete the entire line.
^W delete from the current word to the end of line.
History
^P move back through history.
^N move forward through history.
不论是 exit、quit 或 END-OF-FILE 字元,均可使 GNUPLOT 结束执行。