gnuplot - 如何使用 Gnuplot 绘制线图?

标签 gnuplot

我的文件内容如下:

user_number     diff    id  
1                3      1  
1                4      1  
2                7      1  
359              8      1  
857              9      1  

这是我使用的命令和产生的错误:

gnuplot> plot "avg_max_min.csv" using 1:2 with boxes  

                                           ^
Error:      warning: Skipping data file with no valid points  
                                                    ^
             x range is invalid  

知道错误从何而来吗?

最佳答案

要使其正常工作,您应该将数据文件更改为

    #user_number     diff    id  
    1                3      1  
    1                4      1  
    2                7      1  
    359              8      1  
    857              9      1  

Gnuplot 会将 # 开头的行视为注释,并且不会使用 at 进行绘图。

关于gnuplot - 如何使用 Gnuplot 绘制线图?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7113148/

相关文章:

gnuplot - 是否可以在使用 "linetype"时在 gnuplot 中设置 "linecolor variable"?

loops - 如何使用 gnuplot 在连续图中绘制多个数据文件

gnuplot - grep 文件中的值,然后将其用作文件夹名称来定位文件并绘制

csv - Gnuplot 在同一时间fmt 中具有不同时间的三个 .csv 文件

Gnuplot,如何添加没有刻度的网格?

gnuplot - 如何在对数标度图中获得(自动)偏移量?

gnuplot - 在 Windows 的 gnuplot 中,如何列出当前/工作目录中的文件?

gnuplot - gnuplot 中同一个图上有多个拟合线?

gnuplot - 排除科学格式的tic数

png - 黑白 Gnuplot 堆叠直方图