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


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

Re: Trouble setting xrange when x is a time

From Hans-Bernhard Bröker <HBBroeker@t-online.de>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Trouble setting xrange when x is a time
Date 2019-09-28 15:23 +0200
Message-ID <gv957eF8du6U1@mid.dfncis.de> (permalink)
References <a92ba117-f516-4b7e-93e5-8054c032bc3f@googlegroups.com> <qmlvsa$at8$1@solani.org>

Show all headers | View raw


Am 27.09.2019 um 23:44 schrieb Karl Ratzsch:
> Am 27.09.2019 um 15:23 schrieb stuart.kendrick.sea@gmail.com:

>> set xrange [ "2019-09-25" : "2019-09-26" ]

> Type "show xrange" after this, and you see it didnt work. "set
> xrange" does not understand formatted time data. 

That's not quite as true as you make it out to be.  It can understand
time/date strings, but you have to tell it to:

gnuplot> set xdata time
gnuplot> set timefmt '%Y-%m-%d'
gnuplot> set xrange ['2019-02-07':'2020-03-31']
gnuplot> show xrange

        set xdata time
        set xrange [ "2019-02-07" : "2020-03-31" ] noreverse nowriteback

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


Thread

Trouble setting xrange when x is a time stuart.kendrick.sea@gmail.com - 2019-09-27 06:23 -0700
  Re: Trouble setting xrange when x is a time Karl Ratzsch <mail.kfr@gmx.net> - 2019-09-27 23:44 +0200
    Re: Trouble setting xrange when x is a time Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2019-09-28 15:23 +0200
    Re: Trouble setting xrange when x is a time stuart.kendrick.sea@gmail.com - 2019-09-30 04:19 -0700

csiph-web