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

plotting every nth row

836 views
Skip to first unread message

alpha beaver lo

unread,
Jun 23, 1995, 3:00:00 AM6/23/95
to
Instead of plotting every row of my data,
is there a way of plotting only every nth row?

Deutscher

unread,
Jun 24, 1995, 3:00:00 AM6/24/95
to
alpha beaver lo (aw...@quads.uchicago.edu) wrote:
: Instead of plotting every row of my data,

: is there a way of plotting only every nth row?

Hm. Pipe it through awk, perhaps? Should work on unix and OS/2, at least.
Otherwise you may have to generate separate files. I don't know if 3.6 (beta)
can do it by now, but 3.5 AFAIK can't. Stefan

--
===============================================================================
Stefan A. Deutscher, s...@martha.utk.edu, (001)-615-[522-7845|974-7838|574-5897]
home^ UTK^ ORNL^
===============================================================================

crawford richard

unread,
Jun 26, 1995, 3:00:00 AM6/26/95
to
aw...@quads.uchicago.edu (alpha beaver lo) writes:

> Instead of plotting every row of my data,
> is there a way of plotting only every nth row?

What version/command are you using?

In 3.5, 'splot' can do it (at least the question can be interpreted
so that the answer is 'yes') but 'plot' can't.

In 3.6, yes. for both 'plot' and 'splot'.

Dick Crawford, aka rccra...@lanl.gov

den...@conmat.phys.soton.ac.uk

unread,
Jun 27, 1995, 3:00:00 AM6/27/95
to
In Article <3sijj9$g...@martha.utk.edu>

s...@martha.utcc.utk.edu (Deutscher) writes:
>alpha beaver lo (aw...@quads.uchicago.edu) wrote:
>: Instead of plotting every row of my data,

>: is there a way of plotting only every nth row?
>
>Hm. Pipe it through awk, perhaps? Should work on unix and OS/2, at least.
>Otherwise you may have to generate separate files. I don't know if 3.6 (beta)
>can do it by now, but 3.5 AFAIK can't. Stefan

FYI, 3.6 beta has a plot 'file' every a[:b[:c[:d]]]

which plots every a'th point in every b'th line, starting at point c
in line d.

3.6 available from cmpc1.phys.soton.ac.uk for beta testing

dd
--
David Denholm 'official' : D.R.D...@southampton.ac.uk
Physics dept. preferred : den...@conmat.phys.soton.ac.uk
Southampton University Tel : (01703) 592104 [work] (01489) 576733 [home]
uk SO17 1BJ Fax : (01703) 593910

Deutscher

unread,
Jun 27, 1995, 3:00:00 AM6/27/95
to
den...@conmat.phys.soton.ac.uk wrote:
: In Article <3sijj9$g...@martha.utk.edu>

: s...@martha.utcc.utk.edu (Deutscher) writes:
: >alpha beaver lo (aw...@quads.uchicago.edu) wrote:
: >: Instead of plotting every row of my data,
: >: is there a way of plotting only every nth row?
: >
: >Hm. Pipe it through awk, perhaps? Should work on unix and OS/2, at least.
: >Otherwise you may have to generate separate files. I don't know if 3.6 (beta)
: >can do it by now, but 3.5 AFAIK can't. Stefan

: FYI, 3.6 beta has a plot 'file' every a[:b[:c[:d]]]
: which plots every a'th point in every b'th line, starting at point c
: in line d.

I love it, David! 3.6 seems to grow whenever I turn around to get some
sleep .. :-) (Oh -- is there a doc in gnu-info or inof-tex form planned
on gnu-plot?) Stefan

0 new messages