|
From: Frazer <pf...@mo...> - 2010-06-21 18:08:10
|
Thomas Sefzick <t.sefzick <at> fz-juelich.de> writes: > plot for [i=0:1] "graph.dat" using 1:2:-2 index i lc variable title > columnheader Thanks for the reply. Your suggestion almost works. When I use it, I get a plot with multiple lines, each with a different color. I also get a key with multiple titles, one for each line. The problem is that all the sample lines in the key are solid black, so it is difficult to know which line on the plot belongs with each title. Is there something else I should be doing? Also, a minor problem is that it would be nice to be able to determine the value of n from the file, something like plot for [i=0:n] where n is determined from "graph.dat". A work-around is plot for [i=0:20] where I assume the number of lines to be plotted is < 20. That gives some warnings, but works otherwise. Thank you for your time. Frazer P.S. I submitted this followup several days ago, but it didn't appear, so I'm reposting. I apologize if it becomes a multiple post. |