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


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

Re: plotting 2 files with 2 different datafile separators

From Karl Ratzsch <mail.kfr@gmx.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: plotting 2 files with 2 different datafile separators
Date 2020-06-11 21:24 +0200
Organization solani.org
Message-ID <rbu0e1$sp3$1@solani.org> (permalink)
References <alpine.WNT.2.21.999.2006101302220.10568@dhcp3-6> <rbqi5n$eui$1@dont-email.me> <alpine.WNT.2.21.999.2006101536390.10568@dhcp3-6>

Show all headers | View raw


Am 10.06.2020 um 15:43 schrieb Jean-Pierre Coulon:
> On Wed, 10 Jun 2020, Jörg Buchholz wrote:
> 
>> Here the default "whitespace" works with both separators
>> (Tabulator and
>> Space).
>>
>> set datafile separator whitespace
> 
> In my second file I have: set timefmt "%d/%m/%Y %H:%M:%S" and now
> when I plot the second file using 1:2 gnuplot believes the hour
> field is my second column. Same with 1:3.
> 
> I know how to workaround with multiplot but I thought it could be
> simpler.

The timeformat specifier should win against any datafile separator.
At least I was pretty sure it used to. That however doesn´t seem to
be the case both in gp5.3rc1 and 4.6.6. Hmmm ....


$dat << EOD
03/04/2020 14:14:14 654
03/04/2020 15:15:15 543
03/04/2020 16:16:16 654
EOD

#set dataf sep ...

set xdata time
set timefmt "%d/%m/%Y %H:%M:%S"
plot $dat us (timecolumn(1)):3 w lp ps 3



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


Thread

plotting 2 files with 2 different datafile separators Jean-Pierre Coulon <coulon@cacas.pam.obs-nice.fr> - 2020-06-10 13:07 +0200
  Re: plotting 2 files with 2 different datafile separators Olaf Schultz <o.schultz@enhydralutris.de> - 2020-06-10 13:55 +0200
  Re: plotting 2 files with 2 different datafile separators Jörg Buchholz <bookwood4new@freenet.de> - 2020-06-10 14:03 +0200
    Re: plotting 2 files with 2 different datafile separators Jean-Pierre Coulon <coulon@cacas.pam.obs-nice.fr> - 2020-06-10 15:43 +0200
      Re: plotting 2 files with 2 different datafile separators Jörg Buchholz <bookwood4new@freenet.de> - 2020-06-11 07:11 +0200
        Re: plotting 2 files with 2 different datafile separators Jean-Pierre Coulon <coulon@cacas.pam.obs-nice.fr> - 2020-06-11 08:21 +0200
          Re: plotting 2 files with 2 different datafile separators Olaf Schultz <o.schultz@enhydralutris.de> - 2020-06-11 09:18 +0200
            Re: plotting 2 files with 2 different datafile separators Jörg Buchholz <bookwood4new@freenet.de> - 2020-06-11 11:37 +0200
      Re: plotting 2 files with 2 different datafile separators Karl Ratzsch <mail.kfr@gmx.net> - 2020-06-11 21:24 +0200
        Re: plotting 2 files with 2 different datafile separators Jörg Buchholz <bookwood4new@freenet.de> - 2020-06-13 20:59 +0200

csiph-web