Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #3471

Re: Change sign in column with calculated number

From Michael Okuntsov <okuntsov.mikhail@yandex.ru>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Change sign in column with calculated number
Date 2016-11-22 18:04 +0700
Organization A noiseless patient Spider
Message-ID <o118m5$it1$1@dont-email.me> (permalink)
References <o116jh$c19$1@dont-email.me>

Show all headers | View raw


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))

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Find similar


Thread

Change sign in column with calculated number Michael Okuntsov <okuntsov.mikhail@yandex.ru> - 2016-11-22 17:28 +0700
  Re: Change sign in column with calculated number Michael Okuntsov <okuntsov.mikhail@yandex.ru> - 2016-11-22 18:04 +0700

csiph-web