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


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

Using using

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Dieter Britz <dieterhansbritz@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject Using using
Date Thu, 22 Aug 2013 14:24:42 +0000 (UTC)
Organization A noiseless patient Spider
Lines 29
Message-ID <kv56va$q32$1@dont-email.me> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
Injection-Date Thu, 22 Aug 2013 14:24:42 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="ac27bc306e2949aa06a7f4657450a20d"; logging-data="26722"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/JuKXGw7JYmpnrYnr1vx0ZW8m8iuPereM="
User-Agent Pan/0.135 (Tomorrow I'll Wake Up and Scald Myself with Tea; GIT 30dc37b master)
Cancel-Lock sha1:YGwTvCuef8l35XqGM9DxpaNeIbc=
Xref csiph.com comp.graphics.apps.gnuplot:1992

Show key headers only | View raw


I want to plot column 2 against col. 1, but subtract
a constant from col. 2. I tried, in a test script,

plot 'test.dat' using 1:($2 + 1) w p pt 7

but gnuplot complains

Warning: empty y range [1:1], adjusting to [0.99:1.01]

although the data file contains

1 1
2 2
3 3
4 4
5 5

What am I doing wrong? I read this in the manual:

plot 'file' using 1:($2+$3) "%1f,%1f,%1f"

which led me to use the above. I assume the format stuff
is not needed.

If I am doing this wrong, how do I modify a given column
to be plotted arithmetically?

-- 
Dieter Britz

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


Thread

Using using Dieter Britz <dieterhansbritz@gmail.com> - 2013-08-22 14:24 +0000
  Re: Using using Karl <mail.kfr@gmx.net> - 2013-08-22 17:46 +0200
    Re: Using using Dieter Britz <dieterhansbritz@gmail.com> - 2013-08-23 08:50 +0000
      Re: Using using Christoph Bersch <usenet@bersch.net> - 2013-08-23 11:40 +0200
        Re: Using using Dieter Britz <dieterhansbritz@gmail.com> - 2013-08-23 12:02 +0000
          Re: Using using Dieter Britz <dieterhansbritz@gmail.com> - 2013-08-23 12:44 +0000
          Re: Using using Christoph Bersch <usenet@bersch.net> - 2013-08-23 15:04 +0200

csiph-web