Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #3817
| Newsgroups | comp.graphics.apps.gnuplot |
|---|---|
| Date | 2017-11-08 23:47 -0800 |
| Message-ID | <9cee3978-91fd-46d3-8745-2a3ba3ef3b4c@googlegroups.com> (permalink) |
| Subject | Filledcurves and color gradient |
| From | al1.reymond@gmail.com |
Hello,
Is it possible to have a color gradient between filledcurves ?
In the followinf exeample, I would like to have a gradient from green to red starting at the central green line and stoping at the upper red line ; and the same starting from the green line and stopping at the lower red line. That instead of the unique cyan color.
See image : https://www.dropbox.com/s/vragkqu8yhhokdb/gradient.png
$data1 << EOD
1 "1" 3.12 9.47 22.17
2 "2" 5.52 13.19 29.7
3 "3" 2.79 10.6 25.82
4 "4" 2.29 6.44 15.85
5 "5" 2.04 4.14 9.7
6 "8" 1.53 3.2 8.67
7 "12" 0.87 2.26 8.89
EOD
plot "$data1" using 1:3:5 with filledcurves fc rgb 'cyan' title 'Normal values', \
'' using 1:4 with lines lw 2 lc rgb 'green' title 'Mean', \
'' using 1:3 with lines lw 2 lc rgb 'red' title 'Low', \
'' using 1:5 with lines lw 2 lc rgb 'red' title 'High'
I would be gratefull if someone could help as I am not a gnuplot specialist.
Regards,
Alain
Back to comp.graphics.apps.gnuplot | Previous | Next | Find similar
Filledcurves and color gradient al1.reymond@gmail.com - 2017-11-08 23:47 -0800
csiph-web