【问题标题】:Read Colour Value from Datafile in Gnuplot从 Gnuplot 中的数据文件中读取颜色值
【发布时间】:2022-02-05 00:03:01
【问题描述】:

我正在尝试绘制具有不同颜色的向量。颜色值作为第三列存储在数据文件中。

例如,假设数据文件是“a.txt”包含

0.603358           2.022173          1
1.08929            2.039982          2
1.588976           2.040512          3

典型情节是

plot 'a.txt' using 1:1:($2-$1):(0) notitle with vectors heads size screen 0.008,90 lc 2

问题是“lc”如何取第三列的值?

【问题讨论】:

    标签: gnuplot


    【解决方案1】:

    使用linecolor variable,它从最后提到的列中获取颜色。

    plot 'a.txt' using 1:1:($2-$1):(0):3 notitle with vectors heads size screen 0.008,90 lc variable
    

    【讨论】:

      猜你喜欢
      • 2019-07-06
      • 2023-03-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多