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

Plotting Rows in a File

558 views
Skip to first unread message

Jasmin and Varqa Khadem

unread,
Apr 26, 2001, 8:58:07 AM4/26/01
to
Dear All,

I was wondering how I can plot rows (within a
space delimited file) against each other.
As far as I understand with GNUplot one can
plot columns of data, e.g.

plot 'filename' u 1:3 not w lines.

Is there a syntax to specify the n-th vs.
m-th row of the same file?

yours sincerely,

Varqa Khadem

Hans-Bernhard Broeker

unread,
Apr 26, 2001, 10:52:04 AM4/26/01
to
Jasmin and Varqa Khadem <varqa....@balliol.oxford.ac.uk> wrote:

> I was wondering how I can plot rows (within a
> space delimited file) against each other.

[...]


> Is there a syntax to specify the n-th vs.
> m-th row of the same file?

No. You'll have to transpose the file with an external tool before
presenting it to gnuplot.

The reason is that gnuplot wants to read the file sequentially,
datapoint for datapoint. With a file organized into rows instead of
columns, it can't do that.
--
Hans-Bernhard Broeker (bro...@physik.rwth-aachen.de)
Even if all the snow were burnt, ashes would remain.

crawford

unread,
Apr 26, 2001, 11:15:19 AM4/26/01
to
On Thursday, April 26, 2001 Varqa Khadem wrote:
>
> I was wondering how I can plot rows (within a
> space delimited file) against each other.
> As far as I understand with GNUplot one can
> plot columns of data, e.g.
>
> plot 'filename' u 1:3 not w lines.
>
> Is there a syntax to specify the n-th vs.
> m-th row of the same file?

No, there isn't. You'll have to use some external tool to transpose your
data.

Sorry.

Dick Crawford, aka craw...@arete.com

0 new messages