GNUPLOT多重比例相同
我发现几年前提供的解决方案非常有用:
但是,如果我想在x和y轴之间与左图中的比例相同,该怎么办?
最好的,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我发现几年前提供的解决方案非常有用:
但是,如果我想在x和y轴之间与左图中的比例相同,该怎么办?
最好的,
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
根据您想要的确切条件,请检查
帮助大小
和以下3个示例。设置乘数布局1,2
将使您的画布分为两个半,而gnuplot将根据您给出的选项填充一半。示例1:
设置大小比率-1
将尝试使x-/y-ranges相同的光圈比,即第一个图将以正方形出现(20 :20或1:1),第二个情节将显示为(100:20或5:1)。示例2:
设置大小比1
将迫使图形的比率为1:1。由于轴和/或TIC标签可能需要不同量的空间,因此GNUPLOT的自动金属将导致绝对大小不同(但比率相同)的边界。示例3:如果您想要相同的轴长度比 和绝对子图大小,则最好在没有布局的情况下使用乘数,请将所有保证金设置为
0
并自己设置大小和起源(因此是比率)(检查帮助Origin
,帮助大小
)。然后,您必须关心标签的足够利润。脚本:
结果:
示例1:
示例2:
示例3:
Depending on what exactly you want, check
help size
and the following 3 examples.set multiplot layout 1,2
will split your canvas into two halfs and gnuplot will fill the halfs with the graphs depending on the options you give.Example 1:
set size ratio -1
will try to make the same aperture ratio for the x-/y-ranges, i.e. the first plot will appear as a square (20:20 or 1:1), the second plot will appear as (100:20 or 5:1).Example 2:
set size ratio 1
will force the graphs to have a ratio of 1:1. Since axis and/or tic label might need different amount of space, gnuplot's automargin will result in borders with different absolute size (but identical ratio).Example 3: if you want same axes length ratio and same absolute subgraph size, you better use multiplot without layout, set all the margins to
0
and set the sizes and origins (and hence the ratios) yourself (checkhelp origin
,help size
). Then you have to take care about enough margins for the labels.Script:
Results:
Example 1:
Example 2:
Example 3: