FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
gnuplot/demo/fillbetween.dem at master · gnuplot/gnuplot · GitHub
gnuplot
gnuplot
Repository navigation
Code
Pull requests
2
(2)
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
gnuplot
/
demo
/
fillbetween.dem
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (33 loc) · 1.33 KB
Breadcrumbs
gnuplot
/
demo
/
fillbetween.dem
Copy path
File metadata and controls
34 lines (33 loc) · 1.33 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
# Demonstrate filling the area between two curves
# and also the application of fillstyle to filled curves.
# Ethan Merritt <merritt@u.washington.edu>
# June 2004
#
set title "Fill area between two curves"
set style data lines
set xrange [10:*]
set yrange [0:175]
plot 'silver.dat' u 1:2:3 "%lf %lf %lf" w filledcu, \
'' u 1:2 lt -1 notitle, '' u 1:3 lt -1 notitle
pause -1 "Hit return to continue"
set style fill pattern 2
set title "Fill area between two curves (pattern fill)"
replot
pause -1 "Hit return to continue"
set title "Fill area between two curves (above/below)"
set style fill solid 1.0 noborder
set xrange [250:500]
set auto y
plot 'silver.dat' u 1:2:($3+$1/50.) w filledcurves above title 'Above', \
'' u 1:2:($3+$1/50.) w filledcurves below title 'Below', \
'' u 1:2 lt -1 lw 2 title 'curve 1', \
'' u 1:($3+$1/50.) lt 3 lw 2 title 'curve 2'
pause -1 "Hit return to continue"
set title "Fill area between two smoothed curves (above/below)"
plot 'silver.dat' u 1:2:($3+$1/50.) smooth csp w filledcurves above lt 3 title 'Above', \
'' u 1:2:($3+$1/50.) smooth csp w filledcurves below lt 4 title 'Below', \
'' u 1:2 smooth csp with lines lt -1 lw 2 title 'curve 1', \
'' u 1:($3+$1/50.) smooth csp with lines lt 1 lw 2 title 'curve 2'
pause -1 "Hit return to continue"
reset
Back
|
FazBrowse Home
|
New Git URL