Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1021

Re: How to label an impulse plot?

From babelproofreader <babelproofreader@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: How to label an impulse plot?
Date 2012-04-04 05:49 -0700
Organization http://groups.google.com
Message-ID <e2dbe7b1-42cd-4cf6-8aaa-7a455d11bdd5@k24g2000yqe.googlegroups.com> (permalink)
References <986b41c1-08e3-472b-b2e0-d277a8743059@r9g2000yqd.googlegroups.com> <jld6qs$gtd$2@dont-email.me> <b3ba40b4-eab0-4494-86e7-74e2d6de3633@f6g2000vbc.googlegroups.com> <jlfqvl$qjl$1@dont-email.me>

Show all headers | View raw


On 3 Apr., 23:44, sfeam <sf...@users.sourceforge.net> wrote:
> babelproofreader wrote:
> > On 2 Apr., 17:48, sfeam <sf...@users.sourceforge.net> wrote:
> >> babelproofreader wrote:
> >> > I am currently plotting a series of impulse bars with Gnuplot like
> >> > this:
>
> >> > using 1:23 notitle with impulses lt 0 linecolor rgb "#C0C0C0" axis
> >> > x1y2, \
> >> > using 1:24 notitle with impulses lt 0 linecolor rgb "#C0C0C0" axis
> >> > x1y2, \
>
> >> > and I would like to label these impulse bars with identifying numbers
> >> > at the top/bottom of each impulse bar. How can I adjust the above code
> >> > to achieve this?
>
> >> See 5th plot in this demo:
>
> >>http://gnuplot.sourceforge.net/demo_cvs/datastrings.html
>
> >> The demo uses "with boxes" rather than "with impulses" but it shouldn't
> >> matter.
>
> > Thanks for this link but it doesn't quite do what I would like. I
> > don't want to label the impulses with their values but rather label
> > them sequentially i.e. the first impulse is labelled "1", the second
> > "2" etc.
>
> That's fine.  The sequential order of the points in returned in column 0.
> See "help pseudo-columns".
> So use a plot command like
>    plot 'foo' using 1:23 with impulses, '' using 1:23:0 with labels

Thanks. Problem now solved.

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Find similar


Thread

How to label an impulse plot? babelproofreader <babelproofreader@gmail.com> - 2012-04-02 05:49 -0700
  Re: How to label an impulse plot? sfeam <sfeam@users.sourceforge.net> - 2012-04-02 14:48 -0700
    Re: How to label an impulse plot? babelproofreader <babelproofreader@gmail.com> - 2012-04-03 12:53 -0700
      Re: How to label an impulse plot? sfeam <sfeam@users.sourceforge.net> - 2012-04-03 14:44 -0700
        Re: How to label an impulse plot? babelproofreader <babelproofreader@gmail.com> - 2012-04-04 05:49 -0700

csiph-web