|
From: Thomas S. <t.s...@fz...> - 2010-10-14 15:34:10
|
your plot command doesn't really work because you loose the first line, due to the columnheader(2) option which interprets the first line as a text line, not as a data line. a 'plot nothing' to set a variable containing the values you want to have in the key should do the job: plot "OUT.txt" using \ 0:(my_title="m = ".stringcolumn(2)." C = ".stringcolumn(3)." b = ".stringcolumn(4) , 0/0) \ every ::0::0 notitle, \ "" index 0 using 1:5:7 title my_title with yerrorbars AceStrider1 wrote: > > Hi All, > > I am trying to set a title on the legend based on data from multiple > columns. > > for instance the file name is out.txt: > > #N m C b A B STDEV_A STDEV_B > 100000 1 0.1 0 0.020280 0.232320 4.457500E-04 1.335500E-03 > 1000000 1 0.1 0 0.020740 0.232260 1.425000E-04 4.222800E-04 > 10000000 1 0.1 0 0.020800 0.231650 4.512800E-05 1.334100E-04 > 100000000 1 0.1 0 0.020740 0.231890 1.425300E-05 4.220400E-05 > > I am plotting using the following: > > set log x > set xrange [ 10000 : 1000000000] > set title "Albedo" > plot "OUT.txt" index 0 using 1:5:7 title column(2) with yerrorbars 3 > > > > This works, but I am having a difficult time combining say column 2, 3, > and 4 as in > "m = ".column(2)." C = ".column(3)." b = ".column(4) > > Does anyone have any idea? > > Thank, > Adan > > > -- View this message in context: http://old.nabble.com/Multiple-string-concatenation-after-title-using-column%28n%29-function-tp29962624p29963635.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |