gnuplot: set columnheader as label
问题 Is there a chance to set the header of the data file columns as label (not as key)? I have data files with 5 or 6 columns and a header above each column. Now I would like to use the columnheader with the set label command. Is this possible? 回答1: On a unixoid system, the head command helps: header = system("head -n 1 ".filename) label1 = word(header,1) label2 = word(header,2) ... set label 1 at 0.5,0.5 label1 set label 2 .... MS win does not have the head command, you might use 'findstr /B \"#