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


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

Re: time format and xrange or missing data "."

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!news.dfncis.de!not-for-mail
From Hans-Bernhard Bröker <HBBroeker@t-online.de>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: time format and xrange or missing data "."
Date Tue, 15 May 2012 19:52:12 +0200
Lines 24
Message-ID <a1fjebFjl7U1@mid.dfncis.de> (permalink)
References <11080488.2800.1337102142460.JavaMail.geo-discussion-forums@ynmb39>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.dfncis.de tklQ8ZBbYt8kuaO0StcTzgV3oBP79zit+b/c9JJ09JKxrjmVu/uXlCfJF2mtBdUQdsGB57WlNN
Cancel-Lock sha1:483gzp1kjDD7pqzOWBxU8c7baWs=
User-Agent Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120420 Thunderbird/12.0
In-Reply-To <11080488.2800.1337102142460.JavaMail.geo-discussion-forums@ynmb39>
Xref csiph.com comp.graphics.apps.gnuplot:1112

Show key headers only | View raw


On 15.05.2012 19:15, bryan wrote:

> I would like to set xrange longer than the available data.

> gnuplot>  set xdata time ; set timefmt '%m-%Y' ; set format x '%b'
> gnuplot>  plot 'data.dat' u 2:1 w lp
>
> ( ... looks OK ...)
>
> gnuplot>  set xrange [0:14]

How do you expect that to work for a time?  What time/date is '14' 
supposed to be?

If you're going to use time/date axes, your range will have to be in 
time/date format, too.  Gnuplot even, kinda-sorta, tells you so:

> gnuplot>  show xrange
>
> 	set xdata time
> 	set xrange [ * : * ] noreverse nowriteback  # (currently ["10-2011":"05-2012"] )

Note that "currently" setting.  That's how you're supposed to spell a 
setting of the xrange in this case.

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


Thread

time format and xrange or missing data "." bryan <bryanlepore@gmail.com> - 2012-05-15 10:15 -0700
  Re: time format and xrange or missing data "." Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2012-05-15 19:52 +0200
    Re: time format and xrange or missing data "." bryan <bryanlepore@gmail.com> - 2012-05-15 11:14 -0700

csiph-web