【问题标题】:Plot in GNU PLOT在 GNUPLOT 中绘图
【发布时间】:2013-07-02 22:08:17
【问题描述】:

我必须在 GNU PLOT 中绘制多条线。X 轴没有问题。我面临的问题是大多数绘制的线都在 yscale [0-0.05] ,很少在 60-70 范围内,其余在 600-700。这些数字对应于 y 轴刻度值。但是在我绘制之后,我只能看到 3 组线都搞砸了。线条之间没有明确性。 0 处的线和 0.003 处的线看起来像一条线。如果我设置 yrange[0:0.05],则此范围之间的线条清晰可见。但我想要同一张图中的所有线条。我听说过断轴和多图……它们有用吗?如何实施它们。任何人请帮助我。 下面是正文

set terminal png size 1300,1200 enhanced font 'Verdana,20
set output ' output .png’
set key  font 'Verdana,16'
set key bottom outside
set yrange[500:1000] 
set xtics("25k" 25000,"50k" 50000,"75k" 75000,"100k" 100000)
set grid
set title 'Performance Metrics'
set ylabel 'Metrices'
set xlabel 'FES'

plot ' input '  using 1:2 title ' A' with linespoints linewidth 4, 
' input ' using 1:3 title B'with linespoints linewidth 4,
'input ' using 1:4 title ' c' with linespoints linewidth 4, 
'input ' using 1:5 title 'D' with linespoints linewidth 4, 
 ' input ' using 1:6 title 'E' with linespoints linewidth 4,
' input ' using 1:7 title 'F' with linespoints linewidth 4,
' input ' using 1:8 title 'G' with linespoints linewidth 4,
' input '  using 1:9 title ' H ' with linespoints linewidth 4,
' input '  using 1:10 title ' I' Metric ' with linespoints linewidth 4


set output 
set terminal windows

input.dat 是这样的:

25        0.002        0.05        899        455        444        0.08        0.00004        900        700        0.003

这样我就有了其他行。我只展示了第一个

【问题讨论】:

  • 你能提供一个数据样本和你目前拥有的 gnuplot 脚本吗?
  • 我已经更新了@choroba 上面的问题描述。请帮忙
  • 您绝对希望 y 轴具有线性刻度吗?使用对数刻度的 y 轴应该使您的所有绘图都具有可比性,您是否反对这种解决方案?
  • @SidR 非常感谢你。我使用了“设置对数刻度 y”。它对我有用:)

标签: gnuplot


【解决方案1】:

然后我会将我的评论转换为答案。 ;)

使用将 y 轴从线性比例更改为对数比例,

set logscale y

应该让你的情节具有可比性。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-04-27
    • 2019-02-19
    • 1970-01-01
    • 1970-01-01
    • 2023-03-28
    • 1970-01-01
    相关资源
    最近更新 更多