Gnuplot:多个窗口中的多个绘图
我想对同一文件的不同数据列进行多个绘图,但我希望每个绘图都有一个新窗口。我不希望附加的绘图与命令Gnuplot:多个窗口中的多个绘图,plot,gnuplot,gnu,Plot,Gnuplot,Gnu,我想对同一文件的不同数据列进行多个绘图,但我希望每个绘图都有一个新窗口。我不希望附加的绘图与命令set multiplot layout 1,2关联。 该思想由以下伪代码表示: >gnuplot >plot "myfile.txt" u 1:4 >#make me plot another file without deleting the previous one i.e. open a new window on which data is plot
set multiplot layout 1,2
关联。
该思想由以下伪代码表示:
>gnuplot
>plot "myfile.txt" u 1:4
>#make me plot another file without deleting the previous one i.e. open a new window on which data is plotted
>instructions I don't know
>plot "myfile.txt" u: ($3*$3)
>#I obtain two windows
您不需要编写正在使用的终端。我知道您希望有两个相邻的窗口,而不是磁盘上的两个图形文件。在gnuplot控制台中检查例如:
help wxt
。如果你想在磁盘上存储两个文件,你必须选择另一个终端,例如
set term pngcairo
set output 'myOutput1.png'
plot x
set output 'myOutput2.png'
plot x**2
set output
因此,对于交互式wxt终端,以下功能对我很有用:
代码:
### several terminals
reset session
set term wxt 1 size 500,400
plot sin(x)
set term wxt 2 size 500,300
plot cos(x)
set term wxt 3 size 300,200
plot x**2
### end of code
结果:
### several terminals
reset session
set term wxt 1 size 500,400
plot sin(x)
set term wxt 2 size 500,300
plot cos(x)
set term wxt 3 size 300,200
plot x**2
### end of code
我在Ubuntu上,而不是Windows版本的Gnuplot或虚拟盒子。然后,你可以使用例如
设置术语qt 0
,设置术语qt 1
等。