【问题标题】:gnuplot autotitle columnheader with whitespaces带有空格的 gnuplot 自动标题列标题
【发布时间】:2013-09-05 18:51:38
【问题描述】:

如何在带有自动标题的列标题中创建带有空格的图例?例如。数据文件的前两行:

T "x high" "x low"
0.1 3.14 0.0554

图例应该是:

T
x high
x low

不幸的是,gnuplot 是这样解释的:

T
x
high

引号被简单地忽略,第二列标题被分成两部分。我在互联网上找不到任何有关此的信息。

【问题讨论】:

    标签: whitespace gnuplot space legend columnheader


    【解决方案1】:

    对我来说,以下哪个 gnuplot 版本 4.6 有效:

    set key autotitle columnheader
    plot 'file.dat' using 1:2 , '' using 1:3
    

    并给出图例

    x high
    x low
    

    引用没有问题。

    【讨论】:

    • 谢谢,这是正确的。我的 gnuplot 脚本中有一行:设置数据文件分隔符“”。我不记得为什么我把它放在那里了,但是如果没有那个命令,我的标题中也会出现空格。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-05
    • 1970-01-01
    • 2016-11-24
    相关资源
    最近更新 更多