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


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

Re: How to label an impulse plot?

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From sfeam <sfeam@users.sourceforge.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: How to label an impulse plot?
Followup-To comp.graphics.apps.gnuplot
Date Tue, 03 Apr 2012 14:44:20 -0700
Organization gnuplot development team
Lines 31
Message-ID <jlfqvl$qjl$1@dont-email.me> (permalink)
References <986b41c1-08e3-472b-b2e0-d277a8743059@r9g2000yqd.googlegroups.com> <jld6qs$gtd$2@dont-email.me> <b3ba40b4-eab0-4494-86e7-74e2d6de3633@f6g2000vbc.googlegroups.com>
Reply-To sfeam@users.sourceforge.net
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
Injection-Date Tue, 3 Apr 2012 21:44:21 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="joalffpZlyHxFtpFd/PRrw"; logging-data="27253"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/sOACLljGWLDsDUw+VxH7W"
User-Agent KNode/4.4.9
Cancel-Lock sha1:WUYHSoTqiv1csrQcD8+TF+8T3tw=
Xref csiph.com comp.graphics.apps.gnuplot:1018

Followups directed to: comp.graphics.apps.gnuplot

Show key headers only | View raw


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

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next 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