Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Michael Okuntsov Newsgroups: comp.graphics.apps.gnuplot Subject: Change sign in column with calculated number Date: Tue, 22 Nov 2016 17:28:35 +0700 Organization: A noiseless patient Spider Lines: 9 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 22 Nov 2016 10:28:01 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="6ecaf5a21f38acdc3996ffff94259ea6"; logging-data="12329"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/iFjzJg4/hw7LIvwvl2ra" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 X-Mozilla-News-Host: news://news.eternal-september.org:119 Cancel-Lock: sha1:qE7/HhNlLFxi54WQ4Ys9yJzkZSQ= Xref: csiph.com comp.graphics.apps.gnuplot:3470 Hello, my gnuplot script is generated by another script written in perl. I want to change the sign of plotted values in this plot command: plot [][] for [i=1:11] 'tests.dat' every :::10::10 using 1:i+1 lt i+2 lw 6 w linesp I've tried to change "using 1:i+1" to 1:(-$(i+1)), 1:$(-$(i+1)) etc, but it does not work. How can this be done?