Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3066 > unrolled thread
| Started by | Ingo Thies <ingo.thies@gmx.de> |
|---|---|
| First post | 2015-09-01 17:27 +0200 |
| Last post | 2015-09-02 13:15 +0200 |
| Articles | 4 — 2 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
Filledcurves fails with datafile instead of function Ingo Thies <ingo.thies@gmx.de> - 2015-09-01 17:27 +0200
Re: Filledcurves fails with datafile instead of function Karl Ratzsch <mail.kfr@gmx.net> - 2015-09-01 20:11 +0200
Re: Filledcurves fails with datafile instead of function Ingo Thies <ingo.thies@gmx.de> - 2015-09-01 20:32 +0200
Re: Filledcurves fails with datafile instead of function Karl Ratzsch <mail.kfr@gmx.net> - 2015-09-02 13:15 +0200
| From | Ingo Thies <ingo.thies@gmx.de> |
|---|---|
| Date | 2015-09-01 17:27 +0200 |
| Subject | Filledcurves fails with datafile instead of function |
| Message-ID | <d4lufqFs5hhU1@mid.individual.net> |
Dear all,
since the update from 5.0.0 to 5.0.1 (Mac OS-X 10.10, Fink) plotting
with filledcurves fails with data file while it continues to work with
functions. Maybe there is a trick which I didn't recognize yet.
Sample script:
f(x)=-(x-5.)**2+6 # some function giving an arc-like curve
set xrange [0:10]
set yrange [0:7]
## Works with function
plot f(x) notitle w filledcurves below y=7. lc rgb "blue",\
f(x) t 'f(x)' w l lc rgb "#ff0000"
pause -1
##fails with data
plot 'test.dat' u 1:2 notitle w filledcurves below y=7. lc rgb "blue",\
'test.dat' t 'file' w l lc rgb "#ff0000"
Let test.dat contain this peak-like data points
0. 0.
2. 1.
4. 4.
6. 6.
8. 3.
10. 0.
Best wishes,
Ingo
[toc] | [next] | [standalone]
| From | Karl Ratzsch <mail.kfr@gmx.net> |
|---|---|
| Date | 2015-09-01 20:11 +0200 |
| Message-ID | <ms4poq$601$1@solani.org> |
| In reply to | #3066 |
Am 01.09.2015 um 17:27 schrieb Ingo Thies: > Dear all, > > since the update from 5.0.0 to 5.0.1 (Mac OS-X 10.10, Fink) plotting > with filledcurves fails with data file while it continues to work with > functions. Maybe there is a trick which I didn't recognize yet. > looks indeed broken. The simple workaround is to give the y-value as a third input column plot "-" us 1:2:(7) w filledc 0 1 3 5 5 6 8 2 10 0 e or "plot 1:2 w filledc x2" in your example.
[toc] | [prev] | [next] | [standalone]
| From | Ingo Thies <ingo.thies@gmx.de> |
|---|---|
| Date | 2015-09-01 20:32 +0200 |
| Message-ID | <d4m9a8FgsaU1@mid.individual.net> |
| In reply to | #3067 |
Am 01.09.15 um 20:11 schrieb Karl Ratzsch: > looks indeed broken. The simple workaround is to give the y-value as a > third input column > > plot "-" us 1:2:(7) w filledc Thanks, this works indeed! Best wishes, ingo
[toc] | [prev] | [next] | [standalone]
| From | Karl Ratzsch <mail.kfr@gmx.net> |
|---|---|
| Date | 2015-09-02 13:15 +0200 |
| Message-ID | <ms6lpk$ta3$1@solani.org> |
| In reply to | #3066 |
Am 01.09.2015 um 17:27 schrieb Ingo Thies: > since the update from 5.0.0 to 5.0.1 (Mac OS-X 10.10, Fink) plotting > with filledcurves fails with data file while it continues to work with > functions. Maybe there is a trick which I didn't recognize yet. > plot f(x) notitle w filledcurves below y=7. > ##fails with data > plot 'test.dat' u 1:2 notitle w filledcurves below y=7. lc rgb "blue" There was a small change beween 5.0pl0 and 1. Giving explicitly "y1=" or "y2=" never worked if the plot used the other axis, so the syntax was changed to just "y=" and always using the current axis. This seems to have introduced the regression for data plots. I've left a note on https://sourceforge.net/p/gnuplot/bugs/1568/
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web