I have a data file, for example:
Id a1 a2 a3 1 1 2 3 2 2 3 4 3 2 3 4
But I do not know the exact number of columns, but I can get it in a variable with a shell. And I want to build a data file, the first column as the x axis, and the rest as the y axis in one image, and the column heading as the header for the row. For instance:

How to build in gnuplot? Thank you very much
source share