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

Path csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From Jörg Buchholz <bookwood4new@freenet.de>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: plotting 2 files with 2 different datafile separators
Date Thu, 11 Jun 2020 11:37:12 +0200
Organization A noiseless patient Spider
Lines 37
Message-ID <rbsu06$li5$1@dont-email.me> (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> <rbsedn$7pn$1@dont-email.me> <alpine.WNT.2.21.9999.2006110755520.1460@BecaneCoulon> <hke45uFtnpuU1@mid.individual.net>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
Injection-Date Thu, 11 Jun 2020 09:37:11 -0000 (UTC)
Injection-Info reader02.eternal-september.org; posting-host="ab090448d6e126b69430b67afbfdb132"; logging-data="22085"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18LdS99I5hvugwxUo5mV6kHtNO0s/qtkgA="
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0
Cancel-Lock sha1:QM51Q3hTuEbpxJPb+vt4tMbOrJ0=
In-Reply-To <hke45uFtnpuU1@mid.individual.net>
Content-Language en-GB
Xref csiph.com comp.graphics.apps.gnuplot:4355

Show key headers only | 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