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


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

Re: plotting 2 files with 2 different datafile separators

From Jörg Buchholz <bookwood4new@freenet.de>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: plotting 2 files with 2 different datafile separators
Date 2020-06-11 11:37 +0200
Organization A noiseless patient Spider
Message-ID <rbsu06$li5$1@dont-email.me> (permalink)
References (1 earlier) <rbqi5n$eui$1@dont-email.me> <alpine.WNT.2.21.999.2006101536390.10568@dhcp3-6> <rbsedn$7pn$1@dont-email.me> <alpine.WNT.2.21.9999.2006110755520.1460@BecaneCoulon> <hke45uFtnpuU1@mid.individual.net>

Show all headers | View raw


On 11.06.2020 09:18, Olaf Schultz wrote:
> On 6/11/20 8:21 AM, Jean-Pierre Coulon wrote:
>> On Thu, 11 Jun 2020, Jörg Buchholz wrote:
>>
>>>> I know how to workaround with multiplot but I thought it could be
>>>> simpler.
>>>>
>>>
>>> There will be more than one solution. My solution is, bring both files
>>> to the same separator. With "sytem" you can do it from inside gnuplot.
>>
>> Thanks, but I am with Windows. But I know how to process either file in
>> Fortran. Or I'll ask the enthusiast who provided the files to
>> standardize either one :-)
>>
> 
> install cygwin and then use gnuplot there... sed and awk and gnuplot are
> available under cygwin.

I have a mix of both. On Windows I use the "Win-Gnuplot" and cygwin to
have these nice helpers from the linux/unix world.

Here is another solution with only gnuplot.

set datafile separator whitespace
set table 'space2tab.dat' separator tab
plot 'sep_space.dat' u 1:2 w table
set datafile separator "\t"
unset table
plot 'sep_tab.dat' w p, 'space2tab.dat' w p


Then you have a second dataset (sep_space.dat -> space2tab.dat) with
tabulator instead space separators. It works since version 5.2.2.


Jörg

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