Path: csiph.com!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Karl Ratzsch Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Can use unwrap with input data associated with a function? Date: Fri, 25 May 2018 09:46:02 +0200 Organization: solani.org Lines: 26 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1527234363 25100 eJwFwQkBwDAIA0BLLeWLnAHBv4Td2fPrHermamtbx4nhhDgHac1ZkTmttz9wgX7FRK6wEfUDObMSRA== (25 May 2018 07:46:03 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Fri, 25 May 2018 07:46:03 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 In-Reply-To: Cancel-Lock: sha1:5D/1qGAJFP58zUx40qrGFU3dNVc= Content-Language: de-DE-1901 X-User-ID: eJwNxMEBwCAMAsCVGhNAx1Fq9h+hvcchGbSKYKHR7zPpTGn1rIPD3C1L/kcO+UbH2pd+HDX8ARrTET0= X-NNTP-Posting-Host: eJwFwQERADEIAzBLv4MWKucZ4F/CEhgPbzhBx2KLvBtdsPQxZR+/HRRGo/rtU7SHctAOYR8hPxEI Xref: csiph.com comp.graphics.apps.gnuplot:3948 Am 25.05.2018 um 09:15 schrieb Jean-Pierre Coulon: > 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 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? I'd say thats a bug. Looks like "smooth unwrap" does not like the "angle degree" setting.