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


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

Re: Using using

From Dieter Britz <dieterhansbritz@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Using using
Date 2013-08-23 08:50 +0000
Organization A noiseless patient Spider
Message-ID <kv77pa$loj$1@dont-email.me> (permalink)
References <kv56va$q32$1@dont-email.me> <kv5boi$q05$1@news.rz.uni-karlsruhe.de>

Show all headers | View raw


On Thu, 22 Aug 2013 17:46:37 +0200, Karl wrote:

> Am 22.08.2013 16:24, schrieb Dieter Britz:
>> 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
>> 
>> 
> You´ve set an xrange that ends between one and two.

No I didn't - I think. Here is the whole script:

gnuplot << eoi
set term postscript enh eps 24
set output 'test.eps'
plot 'test.dat' using 1:($2 + 1) w p pt 7
quit
eoi

What should I be writing if I want the number 1 added to
all the values in column 2? The data file is OK; if I
make that using 1:2 it plots alright.


-- 
Dieter Britz

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next 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