gpt4 book ai didi

Gnuplot multiplot 如何在删除抽动和轴标签后保持绘图大小相等?

转载 作者:行者123 更新时间:2023-12-02 16:18:39 25 4
gpt4 key购买 nike

如果有人能帮助我尝试制作一个像样的情节,我会非常高兴

我想获得这样的东西,单个图之间的边距可能较小 as_should be

所以我首先绘制这个 enter image description here我用 gimp 手动编辑它以删除不必要的抽动和标签

我试图在我的 gnuplot 脚本中取消设置标签和抽动,但我得到的只是这些恶心的东西 enter image description here

这是生成那个可怕的图的 gnuplot 脚本,我不明白如何修复单个窗口的尺寸,以便它们大小相等

#set terminal eps color enhanced
set multiplot layout 3,3
set yrange [0:0.45]
set nokey
set ylabel "rmsf/nm"
unset xtics
set title "62A 310K"
plot "data1a" u (($1+178)/3):($2/10) w l, "data1b" u ($1):($2/10) w l
unset ylabel
unset xtics
unset ytics
set title "62P 310K"
plot "data2a" u (($1+178)/3):($2/10) w l, "data2b" u ($1):($2/10) w l
set title "62T 310K"
unset xtics
unset ytics
plot "data3a" u (($1+178)/3):($2/10) w l, "data3b" u ($1):($2/10) w l
set ylabel "rmsf/nm"
set title "62A 314K"
unset xtics
set ytics
plot "data4a" u (($1+178)/3):($2/10) w l, "data4b" u ($1):($2/10) w l
unset ylabel
set title "62P 314K"
unset xtics
unset ytics
plot "data5a" u (($1+178)/3):($2/10) w l, "data5b" u ($1):($2/10) w l
set title "62T 314K"
plot "data6a" u (($1+178)/3):($2/10) w l, "data6b" u ($1):($2/10) w l
set xlabel "residue index"
set ylabel "rmsf/nm"
set xtics
set ytics
set title "62A 318K"
plot "data7a" u (($1+178)/3):($2/10) w l, "data6b" u ($1):($2/10) w l
unset ylabel
set xtics
set xlabel "residue index"
set title "62P 318K"
unset ytics
plot "data8a" u (($1+178)/3):($2/10) w l, "data8b" u ($1):($2/10) w l
set xlabel "residue index"
set xtics
set title "62T 318K"
unset ytics
plot "data9a" u (($1+178)/3):($2/10) w l, "data9b" u ($1):($2/10) w l

提前非常感谢您!

最佳答案

我将上面@Mareczek的评论转换为答案,因为我认为它应该是一个答案。

如果您仅在多图的底部和左侧有抽动和/或标签,则显式设置左侧和底部边距将解决图形大小不均匀的问题,即

set lmargin 10
set bmargin 3

您可以尝试一下边距值,看看什么最适合您的终端样式。

关于Gnuplot multiplot 如何在删除抽动和轴标签后保持绘图大小相等?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8015651/

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