Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3947 > unrolled thread
| Started by | Jean-Pierre Coulon <coulon@cacas.pam.obs-nice.fr> |
|---|---|
| First post | 2018-05-25 09:15 +0200 |
| Last post | 2018-05-25 11:24 +0200 |
| Articles | 4 — 2 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
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
| From | Jean-Pierre Coulon <coulon@cacas.pam.obs-nice.fr> |
|---|---|
| Date | 2018-05-25 09:15 +0200 |
| Subject | Can use unwrap with input data associated with a function? |
| Message-ID | <alpine.WNT.2.20.1805250905200.11560@dhcp3-6> |
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
[toc] | [next] | [standalone]
| From | Karl Ratzsch <mail.kfr@gmx.net> |
|---|---|
| Date | 2018-05-25 09:46 +0200 |
| Message-ID | <pe8evr$ogc$1@solani.org> |
| In reply to | #3947 |
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.
[toc] | [prev] | [next] | [standalone]
| From | Jean-Pierre Coulon <coulon@cacas.pam.obs-nice.fr> |
|---|---|
| Date | 2018-05-25 10:10 +0200 |
| Message-ID | <alpine.WNT.2.20.1805251005490.11560@dhcp3-6> |
| In reply to | #3948 |
On Fri, 25 May 2018, Karl Ratzsch wrote: > I'd say thats a bug. Looks like "smooth unwrap" does not like the "angle > degree" setting. Thanks. It works if I remove set angle degrees and do the other necessary adaptations. -- Jean-Pierre Coulon
[toc] | [prev] | [next] | [standalone]
| From | Karl Ratzsch <mail.kfr@gmx.net> |
|---|---|
| Date | 2018-05-25 11:24 +0200 |
| Message-ID | <pe8kno$s61$1@solani.org> |
| In reply to | #3949 |
Am 25.05.2018 um 10:10 schrieb Jean-Pierre Coulon: > On Fri, 25 May 2018, Karl Ratzsch wrote: > >> I'd say thats a bug. Looks like "smooth unwrap" does not like the "angle >> degree" setting. > > Thanks. It works if I remove set angle degrees and do the other > necessary adaptations. Bug report: https://sourceforge.net/p/gnuplot/bugs/2049/
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web