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


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

Using using

From Dieter Britz <dieterhansbritz@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject Using using
Date 2013-08-22 14:24 +0000
Organization A noiseless patient Spider
Message-ID <kv56va$q32$1@dont-email.me> (permalink)

Show all headers | 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