Two interactive windows in Gnuplot with wxt terminal

后端 未结 1 1081
予麋鹿
予麋鹿 2021-01-04 08:19

I often use the wxt terminal of Gnuplot to do some quick data inspection. I like the interactivity, such that I can easily gain control and zoom/move et cetera.

相关标签:
1条回答
  • 2021-01-04 08:34

    I believe have found a workaround for this problem. But not sure if this works for all cases.

    My solution sounds like obvious. I created three files: configs.plt, wxt1.plt, and wxt2.plt.

    The configs.plt file contains:

    set style line 1 lc "#e41a1c"
    set style line 2 lc "#377eb8"
    

    The wxt1.plt file contains:

    set terminal wxt title "plot sin"
    load "configs.plt"
    plot sin(x) w l ls 1
    

    The wxt2.plt file contains:

    set terminal wxt title "plot cos"
    load "configs.plt"
    plot cos(x) w l ls 2
    

    The only boring thing is run two instead one file.

    0 讨论(0)
提交回复
热议问题