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


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

Re: Scaling one data file

From Dieter Britz <dieterhansbritz@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Scaling one data file
Date 2012-11-06 12:33 +0000
Organization A noiseless patient Spider
Message-ID <k7b028$r5t$1@dont-email.me> (permalink)
References <k78e0a$adq$1@dont-email.me> <k78u3v$80q$1@news.rz.uni-karlsruhe.de>

Show all headers | View raw


On Mon, 05 Nov 2012 18:47:43 +0100, Karl wrote:

> You can of course
> 
> plot "" using 1:(sin($3)**2)
> 
> (rtfm ;-) but have you tried plotting your secod dataset on x1y2?
> 
> plot "" us 1:2 , "" using 1:3 axes x1y2


> On 05.11.2012 14:12, Dieter Britz wrote:
>> I plot two curves, where the one always lies in the y range [0:1] but
>> the other varies, and sometimes has a much smaller y-range. I plot them
>> with
>> 
>> plot 'datafile' w l, 'datafile' using 1:3 w l
>> 
>> and in some cases, the 1:3 plot hugs the zero line.
>> Can I multiply it by some factor in the plot statement?


Why sin($3)**2? I saw that in the manual but don't understand it.
As I wrote, I want to multiply that column by 1000, not take the
sine function. WOuld that therefore be
... using 1:(1000*($3)) 
or what? Thaqt doesn't seem to work.

-- 
Dieter Britz

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


Thread

Scaling one data file Dieter Britz <dieterhansbritz@gmail.com> - 2012-11-05 13:12 +0000
  Re: Scaling one data file Karl <ratzsch@polymer.uka.de> - 2012-11-05 18:47 +0100
    Re: Scaling one data file Dieter Britz <dieterhansbritz@gmail.com> - 2012-11-06 12:33 +0000
      Re: Scaling one data file Ingo Thies <ingo.thies@gmx.de> - 2012-11-06 22:10 +0100

csiph-web