Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?Q?J=c3=b6rg_Buchholz?= 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: References: 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: Content-Language: en-GB Xref: csiph.com comp.graphics.apps.gnuplot:4355 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