Gnuplot中的两个交互式窗口,带有wxt终端

Ber*_*ard 12 gnuplot

我经常使用wxtGnuplot 的终端进行一些快速的数据检查.我喜欢交互性,这样我就可以轻松获得控制和缩放/移动等等.

假设我必须遵循脚本

set terminal wxt 0 persist
plot x

set terminal wxt 1 persist
plot x**2
Run Code Online (Sandbox Code Playgroud)

现在,在窗口1上,我有了交互式控件.但是,在窗口0上,此交互式控件将丢失.

我的问题是:如何在窗口0上获得交互式控制?

我在用gnuplot 4.6.2.我已经看到gnuplot多个图形不是交互式的,但关于x11终端的问题,答案包括打开多个实例gnuplot,这对我来说似乎没有必要.

小智 1

我相信已经找到了解决这个问题的方法。但不确定这是否适用于所有情况。

我的解决方案听起来很明显。我创建了三个文件:configs.pltwxt1.pltwxt2.plt.

configs.plt文件包含:

set style line 1 lc "#e41a1c"
set style line 2 lc "#377eb8"
Run Code Online (Sandbox Code Playgroud)

wxt1.plt文件包含:

set terminal wxt title "plot sin"
load "configs.plt"
plot sin(x) w l ls 1
Run Code Online (Sandbox Code Playgroud)

wxt2.plt文件包含:

set terminal wxt title "plot cos"
load "configs.plt"
plot cos(x) w l ls 2
Run Code Online (Sandbox Code Playgroud)

屏幕截图

唯一无聊的事情是运行两个而不是一个文件。