IHYPRESS PROGRAMMING
Gnuplot scripts with code and output for beginners
Gnuplot Logo
HOME | ASP | C | CSS | GNUPLOT | HTML | JAVASCRIPT | PERL | PHP | PYTHON | RUBY | SVG
GNUPLOT ❯ Using a Data File (Multiple Line Plots on the Same Figure)
<07>
set title "Monthly temperatures January to August (2018-2022)" set xlabel "Years" set ylabel "Averages in degrees Celcius" set xtics 1 # use \ to continue a command over many lines of code # x:y means the data column used for the x and y axes plot 'gnup07.txt' using 1:2 title 'January' with lp, \ 'gnup07.txt' using 1:3 title 'February' with lp, \ 'gnup07.txt' using 1:4 title 'March' with lp, \ 'gnup07.txt' using 1:5 title 'April' with lp, \ 'gnup07.txt' using 1:6 title 'May' with lp, \ 'gnup07.txt' using 1:7 title 'June' with lp, \ 'gnup07.txt' using 1:8 title 'July' with lp, \ 'gnup07.txt' using 1:9 title 'August' with lp, \
Hergestellt in Deutschland / Made in Germany
Data File (gnup07.txt):
# YR Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec 2018 3.0 6.0 8.3 9.9 16.3 20.1 27.2 28.3 19.8 14.3 9.1 5.4 2019 4.0 7.0 6.3 9.9 15.3 21.1 25.2 29.3 17.8 15.3 9.4 5.3 2020 3.3 6.5 8.1 9.1 16.1 20.2 27.5 28.8 19.9 14.2 9.8 5.0 2021 3.6 6.2 8.7 9.0 16.0 20.0 27.0 28.0 19.0 14.0 9.0 5.0 2022 3.7 6.8 8.2 9.3 16.7 20.8 27.5 28.5 19.5 14.5 9.5 5.5
COPYRIGHT © 2015-2024 IHY PRESS Frankfurt am Main 60329 Deutschland