In GnuPlot, I can auto set a plot legend with title columnhead
option in a plot command like:
plot 'test.txt' using 0:1 w linespoints title columnhead
So it reads the column name from the CSV file and use it in the legend.
I would like the same to set xlabel and ylabel. Is is possible?
(Also, I'm interested in knowing how one will do such thing in Python. Is it better than GnuPlot? Should I learn Python instead?)
xlabel
andylabel
from the data file. You would need to do it yourself with some shell command viasystem
. – Christoph