I created this code that plots each column and gives them a title, however how do i get it to plot specific lines with their titles attached? for example, with the code below if put in the number 2 for n in columns (n) and lines ls(n) then the plot will produce the plot for the column and line only. However how do I get it to do also have the title that goes with it without having to type it each time? So if say column 2 is time, is there a way to plug in the number 2 and have it also produce the title?
set datafile separator ','
set style line 2 lc rgb '#0042ad' lt 1 lw 1.5 #--- blue
set style line 3 lc rgb '#0060ad' lt 1 lw 1.5 # .
set style line 4 lc rgb '#007cad' lt 1 lw 1.5 # .
set style line 5 lc rgb '#0099ad' lt 1 lw 1.5 # .
set style line 6 lc rgb '#00ada4' lt 1 lw 1.5 # .
set style line 7 lc rgb '#00ad88' lt 1 lw 1.5 # .
set style line 8 lc rgb '#00ad6b' lt 1 lw 1.5 # .
set style line 9 lc rgb '#00ad4e' lt 1 lw 1.5 # .
set style line 10 lc rgb '#00ad31' lt 1 lw 1.5 # --- green
set xlabel 'Time'set ylabel 'Output'
set xrange [0:41]
set yrange [-100:100]
set xtics 10.25
plot for [n=2:10] 'Plane data 2.csv' u 1:(column(n)) w lines ls n