尽管没有增强和转义,Gnuplot 仍显示下标

Gnuplot displaying subscript despite noenhanced and escaping

输入文件第一行:

num\_threads find\_minimum\_edges label\_components merge\_components delete\_adj\_list delete\_graph other

剧情部分脚本:

plot for [i=2:(n_cols)] \
  input_file using 1:(sum [col=i:n_cols] column(col)) title columnheader(i) noenhanced with filledcurves x1

上面以某种方式显示了带有下标而不是下划线的行标题。我也试着不逃避下划线,但它也没有帮助。我做错了什么?

这似乎是将 noenhancedtitle columnheader 一起使用时的错误,例如title 'x_y' noenhanced 工作正常。

您可以使用两个反斜杠来转义下划线:

a_b c\_d e_f
1 2 3
3 4 5

脚本:

set termoption enhanced
plot for [i=2:3] 'data.txt' using 1:i title columnheader noenhanced, x title 'x_y' noenhanced