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: plot datafile with a blank between +- and some data Date: Wed, 3 Apr 2019 20:33:52 +0200 Organization: A noiseless patient Spider Lines: 29 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Wed, 3 Apr 2019 18:33:53 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="101551676ed44f2f7716f93d17c0ee4a"; logging-data="13825"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19mIwNq4Av7cQMrm583U3xX8kT+H4EBOhI=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 Cancel-Lock: sha1:n2L9v89hvzpE1ESHndBRRFctXlY= In-Reply-To: Content-Language: en-GB Xref: csiph.com comp.graphics.apps.gnuplot:4172 On 03.04.19 08:38, Jörg Buchholz wrote: > Hello, > > how can I plot the following data structure out of a file? > > 33,2019/03/21 10:00:06, 0,+ 6.786,+ 2.507 > 34,2019/03/21 10:00:07, 0,+10.089,+ 5.564 > 35,2019/03/21 10:00:08, 0,- 0.584,+ 3.324 > 36,2019/03/21 10:00:09, 0,+10.156,+ 0.024 > 37,2019/03/21 10:00:10, 0,+ 4.278,+ 5.439 > 38,2019/03/21 10:00:11, 0,+ 0.431,+ 0.262 > > > set datafile separator comma > plot 'datafile' u 1:4 w p pt 7 > > gives only the values higher than 10 to me, cause there are no space > between the sign and the value. > > How can I set the format correct to get all points? At the moment my solution is the following: system "sed -i 's/+ / +/g;s/- / -/g' datafile" Is there a solution to do it inside gnuplot? Jörg