【问题标题】:How to generate a three column data file in gnuplot如何在 gnuplot 中生成三列数据文件
【发布时间】:2020-04-03 15:00:33
【问题描述】:

这是我在这个社区的第一个问题。我在 gnuplot (5.2) 中运行以下短脚本,

set table "testable.txt" plot '+' using 1:($1**2):($1**3) unset table

生成的数据文件只包含两列;首先是从 -10 到 10 的一系列数字,其次是它们的平方(如预期的那样),但第三列(应该是第一列中条目的立方体)丢失了。如何在我的数据文件中获取第三列?

【问题讨论】:

    标签: datatable gnuplot data-files dollar-sign


    【解决方案1】:

    使用with table。检查help plot with table

    set table "testable.txt"
    plot '+' using 1:($1**2):($1**3) with table
    unset table
    

    【讨论】:

      猜你喜欢
      • 2022-01-25
      • 2018-08-23
      • 1970-01-01
      • 1970-01-01
      • 2011-11-21
      • 2023-03-08
      • 2023-03-16
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多