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?

Path csiph.com!feeder.erje.net!1.eu.feeder.erje.net!proxad.net!feeder1-2.proxad.net!cleanfeed2-b.proxad.net!nnrp3-1.free.fr!not-for-mail
Newsgroups comp.graphics.apps.gnuplot
Date Fri, 25 May 2018 09:15:54 +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)
User-Agent Alpine 2.20 (WNT 67 2015-01-07)
MIME-Version 1.0
Content-Type text/plain; format=flowed; charset=US-ASCII
Lines 25
Organization Guest of ProXad - France
NNTP-Posting-Date 25 May 2018 09:15:53 CEST
NNTP-Posting-Host 192.54.176.195
X-Trace 1527232553 news-2.free.fr 4840 192.54.176.195:20237
X-Complaints-To abuse@proxad.net
Xref csiph.com comp.graphics.apps.gnuplot:3947

Show key headers only | 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