gpt4 book ai didi

gnuplot - gnuplot 不显示数据框

转载 作者:行者123 更新时间:2023-12-04 10:34:54 28 4
gpt4 key购买 nike

我想用 gnuplot 做一个条形图。

我使用了这个设置

set style data boxes
set style fill solid
plot 'foo.dat' using 1:2:(1) linewidth 2

foo.dat 的内容是
8 1
10 1
11 4
12 4

gnuplot 只显示与最后两行对应的条。

为什么 ?
除了在我的数据文件中添加“9 0”之外,还有其他解决方案吗?

先感谢您

最佳答案

您的 y -axis 可能会自动缩放为 [1:4]。使用例如

set yrange [0:*]

然后轴总是从 0 开始,但在另一端自动缩放。

关于gnuplot - gnuplot 不显示数据框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60230951/

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