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


Groups > comp.graphics.apps.gnuplot > #570 > unrolled thread

Newbie queries

Started bydolphin <yc282004@yahoo.com.sg>
First post2011-09-06 02:59 -0700
Last post2011-09-06 20:08 -0700
Articles 5 — 3 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  Newbie queries dolphin <yc282004@yahoo.com.sg> - 2011-09-06 02:59 -0700
    Re: Newbie queries Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2011-09-06 12:46 +0200
      Re: Newbie queries dolphin <yc282004@yahoo.com.sg> - 2011-09-06 16:09 -0700
        Re: Newbie queries brendan.halpin@ul.ie (Brendan Halpin) - 2011-09-07 00:30 +0100
          Re: Newbie queries dolphin <yc282004@yahoo.com.sg> - 2011-09-06 20:08 -0700

#570 — Newbie queries

Fromdolphin <yc282004@yahoo.com.sg>
Date2011-09-06 02:59 -0700
SubjectNewbie queries
Message-ID<91cc13d0-3484-46ef-baab-18f7323ff28c@x11g2000prb.googlegroups.com>
Hi,

I have a data file as follows:

Time data
00:00:00 123456
00:00:30   7890123
:
23:59:59  234567

Currently, I inserted a new column from 0 with increment of 30 to the
end and I plotted the graph with 1:3.

If I want to use HH:MM:SS to display for x-axis, how to go about it to
plot the graph?

Thanks in advance.

[toc] | [next] | [standalone]


#571

FromHans-Bernhard Bröker <HBBroeker@t-online.de>
Date2011-09-06 12:46 +0200
Message-ID<9cmc0jFss1U1@mid.dfncis.de>
In reply to#570
On 06.09.2011 11:59, dolphin wrote:
> Time data
> 00:00:00 123456
> 00:00:30   7890123
> :
> 23:59:59  234567
>
> Currently, I inserted a new column from 0 with increment of 30 to the
> end and I plotted the graph with 1:3.

You could have avoided the modification by using pseudo-column 0 instead...

> If I want to use HH:MM:SS to display for x-axis, how to go about it to
> plot the graph?

See "help time/date"

[toc] | [prev] | [next] | [standalone]


#572

Fromdolphin <yc282004@yahoo.com.sg>
Date2011-09-06 16:09 -0700
Message-ID<35cb014a-dc62-4ba6-9331-b82921b77830@a13g2000yqd.googlegroups.com>
In reply to#571
On Sep 6, 6:46 pm, Hans-Bernhard Bröker <HBBroe...@t-online.de> wrote:
> On 06.09.2011 11:59, dolphin wrote:
>
> > Time data
> > 00:00:00 123456
> > 00:00:30   7890123
> > :
> > 23:59:59  234567
>
> > Currently, I inserted a new column from 0 with increment of 30 to the
> > end and I plotted the graph with 1:3.
>
> You could have avoided the modification by using pseudo-column 0 instead...
>
> > If I want to use HH:MM:SS to display for x-axis, how to go about it to
> > plot the graph?
>
> See "help time/date"

I tried using the following text file:

01:00:00  310
01:00:30  185
01:01:00  239
01:01:30  132
01:02:00   85
01:02:30   57
01:03:00    8


set xdata time
set timefmt "%H%M%S"
set xrange ["01:00:00":"03:00"00"]
plot "file" using 1:2 with boxes

The result does not show the graph, were did I done wrongly?

[toc] | [prev] | [next] | [standalone]


#573

Frombrendan.halpin@ul.ie (Brendan Halpin)
Date2011-09-07 00:30 +0100
Message-ID<87pqjdxn9b.fsf@wivenhoe.ul.ie>
In reply to#572
On Wed, Sep 07 2011, dolphin wrote:

> set timefmt "%H%M%S"
  set timefmt "%H:%M:%S"

B
-- 
Brendan Halpin,   Department of Sociology,   University of Limerick,   Ireland
Tel: w +353-61-213147  f +353-61-202569  h +353-61-338562;  Room F1-009 x 3147
mailto:brendan.halpin@ul.ie    ULSociology on Facebook: http://on.fb.me/fjIK9t
http://teaching.sociology.ul.ie/bhalpin/wordpress         twitter:@ULSociology

[toc] | [prev] | [next] | [standalone]


#574

Fromdolphin <yc282004@yahoo.com.sg>
Date2011-09-06 20:08 -0700
Message-ID<a8140bf0-4ddc-4957-8628-c6bcc0ecec10@hb5g2000vbb.googlegroups.com>
In reply to#573
On Sep 7, 7:30 am, brendan.hal...@ul.ie (Brendan Halpin) wrote:
> On Wed, Sep 07 2011, dolphin wrote:
> > set timefmt "%H%M%S"
>
>   set timefmt "%H:%M:%S"
>
> B
> --
> Brendan Halpin,   Department of Sociology,   University of Limerick,   Ireland
> Tel: w +353-61-213147  f +353-61-202569  h +353-61-338562;  Room F1-009 x 3147
> mailto:brendan.hal...@ul.ie    ULSociology on Facebook:http://on.fb.me/fjIK9thttp://teaching.sociology.ul.ie/bhalpin/wordpress        twitter:@ULSociology

Thanks, it is working but when I applied the steps with a record with
86000+ rows (set xrange ["00:00:00":"23:59:59"]), the x-axis displays
01/01 to 02/01 instead?

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web