Gnuplot:如何使用自定义 xlabels 绘制单点

Gnuplot: how to plot single points with custom xlabels

我的问题如下,我有一个这样的文本文件:

#X,#Y 
1,1.00182349
2,4.024570000000001
3,8.73499

我想要得到的是这样的情节:

基本上,每个 y 值都绘制为不同的点,在 x 轴上我的标签是 N、L、H。

我用 Octave 中的 plot 命令制作了那张照片,但我不得不用 gnuplot 来做。

拜托,有人可以告诉我该怎么做吗?

谢谢。

您可以为抽动标签指定任意标签:

set datafile separator comma
set logscale    y
set xtics ("N" 1, "L" 2, "H" 3)
plot "test.dat" using 1:2:1 notitle with points linecolor variable pointtype 5 pointsize 2