gpt4 book ai didi

gnuplot - Gnuplot 多图模式下的屏幕尺寸

转载 作者:行者123 更新时间:2023-12-02 11:00:59 26 4
gpt4 key购买 nike

我有 5 个子图,但仅显示其中 4 个。由于原代码比较长,代码片段如下;我无法增加屏幕尺寸以适应第五个图,因此,仅显示前四个:

set output 'test.png'
set size 1.75,1.75
set terminal png font "/Library/Fonts/Times New Roman Bold.ttf, 10" size 1000,700
set origin 0,0
set multiplot

#1st
set size 0.5,0.5
set origin 0,0.5
...
#2nd
set size 0.5,0.5
set origin 0,0
...
#3rd
set size 0.5,0.5
set origin 0.5,0
...
#4th
set size 0.5,0.5
set origin 0.5,0.5
...
#5th, and this one is not showing up
set size 0.5,0.5
set origin 1,0.5
...

我哪里出错了?

最佳答案

您将第五个图的原点设置为 1, 0.5。这让 gnuplot 将其绘制在窗口之外。
尝试这样的安排:

set size 1, 0.2

#first plot
set origin 0, 0.8
plot ...

#second plot
set origin 0, 0.6
plot ...

#third plot
set origin 0, 0.4
plot ...

#fourth plot
set origin 0, 0.2
plot ...

#fifth plot
set origin 0, 0.0
plot ...

我还没有测试过上面的内容,但我希望你能理解它背后的想法。
也许有关 multiplot 的文档也很有帮助。

关于gnuplot - Gnuplot 多图模式下的屏幕尺寸,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6862921/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com