Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Skip header lines in datafile

4,403 views
Skip to first unread message

Marc Rochel

unread,
Apr 26, 2006, 11:19:17 AM4/26/06
to
Hi !

Is there a way to tell gnuplot to skip the first n lines of a file it should
plot?

Best regards
Marc


Steve Bickerton

unread,
Apr 26, 2006, 2:42:06 PM4/26/06
to
Hi Marc,

> Is there a way to tell gnuplot to skip the first n lines of a file it should
> plot?

see 'help every' for a complete explanation. 'every' lets you plot
every n'th point in a file and can select out points in a several other
ways.

plot 'file.dat' every ::10 using 1:2

Would plot the file starting at point 10 (ie. it skips the first 9
points). As i mentioned, see 'help every' for the full details.

Hope that helps,
steve

0 new messages