GnuPlot auto set xlabel(或ylabel),从CSV fi的列标题读取

2024-09-29 23:22:54 发布

您现在位置:Python中文网/ 问答频道 /正文

在GnuPlot中,我可以在plot命令中使用title columnhead选项自动设置绘图图例,例如:

plot 'test.txt' using 0:1 w linespoints title columnhead

所以它从CSV文件中读取列名并在图例中使用它。在

enter image description hereenter image description here

我想要同样的设置xlabel和ylabel。有可能吗?在

(另外,我还想知道如何在Python中实现这种功能。它比GnuPlot好吗?我应该学习Python吗?)在


Tags: 文件csvtest命令txt绘图plottitle

热门问题