-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
1,483 additions
and
363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
# | ||
# 2D plot style "with hsteps" | ||
# 1) variations of connecting line shape | ||
# | ||
|
||
$data <<EOD | ||
1 5 | ||
2 8 | ||
3 10 | ||
4 7 | ||
5 5 | ||
6 3 | ||
EOD | ||
|
||
set border 3 lw 2 lc 'gray' | ||
set style line 1 lw 2 lc "goldenrod" | ||
set style line 2 lw 3 lc "red" | ||
set xrange [ 0:10] | ||
set yrange [-2:13] | ||
unset tics | ||
set key top right reverse Left samplen 2 | ||
set key offset 2,1 | ||
|
||
set multiplot layout 3,2 | ||
|
||
set title offset 0,-1.5 | ||
set label 1 "baseline" at 7, first 0 offset 0,0.5 | ||
set xzeroaxis | ||
|
||
set key title "full width" | ||
plot $data using 1:2 ls 1 with hsteps title "default", \ | ||
$data using 1:2 ls 2 with hsteps nolink title "nolink" | ||
|
||
set key title "narrow width" | ||
plot $data using 1:2:(0.7) ls 1 with hsteps title "default", \ | ||
$data using 1:2:(0.7) ls 2 with hsteps nolink title "nolink" | ||
|
||
set key title "full width" | ||
plot $data using 1:2 ls 1 with hsteps pillar title "pillar", \ | ||
$data using 1:2 ls 2 with hsteps nolink title "nolink" | ||
|
||
set key title "narrow width" | ||
plot $data using 1:2:(0.7) ls 1 with hsteps pillar title "pillar", \ | ||
$data using 1:2:(0.7) ls 2 with hsteps nolink title "nolink" | ||
|
||
unset label 1 | ||
unset xzeroaxis | ||
|
||
set key title "full width" | ||
plot $data using 1:2 ls 1 with hsteps link title "link", \ | ||
$data using 1:2 ls 2 with hsteps nolink title "nolink" | ||
|
||
set key title "narrow width" | ||
plot $data using 1:2:(0.7) ls 1 with hsteps link title "link", \ | ||
$data using 1:2:(0.7) ls 2 with hsteps nolink title "nolink" | ||
|
||
unset multiplot | ||
pause -1 "<cr> to continue" | ||
|
||
|
||
# | ||
# 2D plot style "with hsteps" | ||
# 1) variations of connecting line shape | ||
# | ||
unset key | ||
set xrange [0:7] | ||
|
||
set multiplot layout 3,3 columnsfirst offset 0,0 scale 1.1,1.1 | ||
|
||
set title "full width" | ||
plot $data using 1:2 ls 1 with hsteps, \ | ||
$data using 1:2 with points pt 7 ps 1 lc black | ||
|
||
set title "width 0.8" | ||
plot $data using 1:2:(0.8) ls 1 with hsteps, \ | ||
$data using 1:2 with points pt 7 ps 1 lc black | ||
|
||
set title "width 0.4" | ||
plot $data using 1:2:(0.4) ls 1 with hsteps, \ | ||
$data using 1:2 with points pt 7 ps 1 lc black | ||
|
||
set title "forward" | ||
plot $data using 1:2 ls 1 with hsteps forward, \ | ||
$data using 1:2 with points pt 7 ps 1 lc black | ||
|
||
set title "forward" | ||
plot $data using 1:2:(0.8) ls 1 with hsteps forward, \ | ||
$data using 1:2 with points pt 7 ps 1 lc black | ||
|
||
set title "forward" | ||
plot $data using 1:2:(0.4) ls 1 with hsteps forward, \ | ||
$data using 1:2 with points pt 7 ps 1 lc black | ||
|
||
set title "backward" | ||
plot $data using 1:2 ls 1 with hsteps backward, \ | ||
$data using 1:2 with points pt 7 ps 1 lc black | ||
|
||
set title "backward" | ||
plot $data using 1:2:(0.8) ls 1 with hsteps backward, \ | ||
$data using 1:2 with points pt 7 ps 1 lc black | ||
|
||
set title "backward" | ||
plot $data using 1:2:(0.4) ls 1 with hsteps backward, \ | ||
$data using 1:2 with points pt 7 ps 1 lc black | ||
|
||
unset multiplot | ||
|
||
pause -1 "<cr> to continue" | ||
|
||
set yrange [-1:13] | ||
set title "hsteps with variable fill color" | ||
set style fill solid 0.5 border lc "black" | ||
plot $data using 1:2:(0.7):1 with hsteps fc variable | ||
|
||
pause -1 "<cr> to continue" | ||
reset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# | ||
# Two plot style options "with hsteps link" and "with hsteps pillar" | ||
# can be combined to create a stacked histogram with connecting lines | ||
# between category boundaries. | ||
# | ||
|
||
set title "Stacked histogram constructed from plot style hsteps" | ||
|
||
$data <<EOD | ||
1 2018 60 30 | ||
2 2019 65 35 | ||
3 2020 61 25 | ||
4 2021 57 33 | ||
5 2022 65 40 | ||
6 2023 62 20 | ||
EOD | ||
|
||
set xrange [0:7] | ||
set yrange [0:80] | ||
unset ytics | ||
set xtics scale 0 | ||
set border 3 lw 2 front | ||
set bmargin 4 | ||
unset key | ||
|
||
set style line 11 linecolor 'gray50' linewidth 2 dashtype (4,10) | ||
set style line 12 linecolor variable linewidth 2 dashtype solid | ||
|
||
plot $data using 1:3:(0.5):xtic(2) ls 11 with hsteps link, \ | ||
$data using 1:3:(0.5):1 ls 12 with hsteps pillar fs solid 0.5 border, \ | ||
$data using 1:4:(0.5) ls 11 with hsteps link, \ | ||
$data using 1:4:(0.5):1 ls 12 with hsteps pillar fs transparent pattern 1 border | ||
|
||
pause -1 "<cr> to continue" | ||
reset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.