Path: csiph.com!weretis.net!feeder6.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Karl Ratzsch Newsgroups: comp.graphics.apps.gnuplot Subject: Re: plotting 2 files with 2 different datafile separators Date: Thu, 11 Jun 2020 21:24:47 +0200 Organization: solani.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 11 Jun 2020 19:24:49 -0000 (UTC) Injection-Info: solani.org; logging-data="29475"; mail-complaints-to="abuse@news.solani.org" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 Cancel-Lock: sha1:J4pxXe/jWd11C6cufw0Wh2UE/wM= Content-Language: de-DE X-User-ID: eJwNx8kRwDAIBLCWuHYx5RgY919Cop/gVE4GwcDDy/HG+oUWKRSTPxY12hvH0ONMtlVlL6EfCBoQPA== In-Reply-To: Xref: csiph.com comp.graphics.apps.gnuplot:4356 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