|
From: Lars H. <la...@ho...> - 2006-11-15 20:21:04
|
On Tuesday November 14th, 2006 at 20:22 h doug bull wrote: > I have come up with a solution, but it is not to neat. My > problem is that it appears that the "key" does not allow > one to write out a variable as you can do with label. Is > this true? No. > To get around this I have made the following do loop to > loop over the data sets and > to have a key for each data set and label it. Is there a > better way to do this. > > set multiplot > n=0; n2=10 > load 'cmd' > > Where the file 'cmd is: > r=(n+1)/12 > set label "%g",n at screen .6,r > set key screen .9,r > plot 'junkresidl' index n:n u 3:4 w l lt (n+1) > pause 0 > n=n+1 > if(n<n2) reread By using the title-option within the plot-command you may place every kind ot text your chosen terminal is able to work with into the key entry of that particular plot. plot 'junkresidl' index n:n u 3:4 title "%n" w l lt (n+1) Many terminals support various commands for producing e.g. indices or superscripts or italic text. See help title and help terminal for more details. BTW: You loop will produce 10 new plots, since every plot-command leads to a new output. Maybe the facilities of replot may help you with this, see help replot. Regards Lars |