wxt terminal弹出新的窗口,绘制2D图像
The wxt terminal device generates output in a separate window. The window is created by the wxWidgets library, where the 'wxt' comes from. The actual drawing is done via cairo, a 2D graphics library, and pango, a library for laying out and rendering text.
Syntax:
set term wxt {
{size
{background
{{no}enhanced}
{font } {fontscale
{title "title"}
{linewidth
{dashlength }
{{no}persist}
{{no}raise}
{{no}ctrl}
{close}
dumb terminal绘制asicii art图形,直接在term看到结果,方便重定向到文本文件
The dumb terminal driver plots into a text block using ascii characters. It has an optional size specification and a trailing linefeed flag.
Syntax:
set terminal dumb {size
{aspect
{[no]enhanced}
{mono|ansi|ansi256|ansirgb}
where
show terminal
set terminal push:保存当前工作状态terminal type
set terminal pop:恢复上一次terminal type
> plot [a:b] function
[a:b]指定函数区间(可省略),function指定函数
各个函数用逗号分隔
set table 'file' #设置存储数据文件,必须要加上单引号
plot function #导出数据
unset table #退出数据导出模式,进行数据绘制
plot 'file' #通过文件中的数据绘制图形,必须要加上单引号
use test command to generate this picture
plot function linecolor rgb ‘color’ linecolor可以缩写为lc
定义linestyle
set style line 1 linecolor red linetype 2
set style line 2 lc green lt 5
引用linestyle
plot function ls n
set size num1,num2 num1和num2的设置的范围为0~1,默认为1,填满画布
set size 0.4,0.4
set size 0.8,0.8
set gride #打开参考点
set mxtics number #设置横轴刻度间格数
set mytics number #设置纵轴刻度间格数