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


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

Can use unwrap with input data associated with a function?

Newsgroups comp.graphics.apps.gnuplot
Date 2018-05-25 09:15 +0200
From Jean-Pierre Coulon <coulon@cacas.pam.obs-nice.fr>
Subject Can use unwrap with input data associated with a function?
Message-ID <alpine.WNT.2.20.1805250905200.11560@dhcp3-6> (permalink)
Organization Guest of ProXad - France

Show all headers | View raw


My input file "phasedata.txt" contains:
1e3 -10
3e3 -38
1e4 -40
3e4 -78 
1e5 -80

My gnuplot file is:
reset; set log x; set nolog y; set angle degrees; set grid
set xrange [1e3:1e5]; set yrange [-180:180]; jay = {0,1}; p(x) = jay*x
other(x) = 1/((1 + p(x)/1e4)*(1 + p(x)/1e4)*(1 + p(x)/1e4))
set format y "%.0f%c\260"
set ytics 90; set mytics 2
plot "phasedata.txt" with lines title "simple input data",\
arg(other(x)) title "other function",\
"phasedata.txt" us 1:($2 +arg(other($1))) with lines title "with other 
function, as is",\
"phasedata.txt" us 1:($2 +arg(other($1))) with lines smooth unwrap title 
"unwrapped"

My 3rd plot is correct by my 4th plot is not, even in the [1000:10000] domain, 
where no unwrap job is required. Why?
-- 
Jean-Pierre Coulon

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


Thread

Can use unwrap with input data associated with a function? Jean-Pierre Coulon <coulon@cacas.pam.obs-nice.fr> - 2018-05-25 09:15 +0200
  Re: Can use unwrap with input data associated with a function? Karl Ratzsch <mail.kfr@gmx.net> - 2018-05-25 09:46 +0200
    Re: Can use unwrap with input data associated with a function? Jean-Pierre Coulon <coulon@cacas.pam.obs-nice.fr> - 2018-05-25 10:10 +0200
      Re: Can use unwrap with input data associated with a function? Karl Ratzsch <mail.kfr@gmx.net> - 2018-05-25 11:24 +0200

csiph-web