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: Re: Change sign in column with calculated number Date: Tue, 22 Nov 2016 18:04:08 +0700 Organization: A noiseless patient Spider Lines: 12 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 22 Nov 2016 11:03:33 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="6ecaf5a21f38acdc3996ffff94259ea6"; logging-data="19361"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/zVVffKqUTeeg6mydda1v5" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 In-Reply-To: Cancel-Lock: sha1:9hvnTh4H0GIwv4OiTedW/VeNz/E= Xref: csiph.com comp.graphics.apps.gnuplot:3471 22.11.2016 17:28, Michael Okuntsov пишет: > 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? Found the answer, using 1:(-column(i+1))