plot.gp (1638B)
1 # Copyright (C) 2025 |Méso|Star> (contact@meso-star.com) 2 # 3 # This program is free software: you can redistribute it and/or modify 4 # it under the terms of the GNU General Public License as published by 5 # the Free Software Foundation, either version 3 of the License, or 6 # (at your option) any later version. 7 # 8 # This program is distributed in the hope that it will be useful, 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 # GNU General Public License for more details. 12 # 13 # You should have received a copy of the GNU General Public License 14 # along with this program. If not, see <http://www.gnu.org/licenses/>. 15 16 # Define the output 17 set terminal pdf 18 set output "Tsrf.pdf" 19 20 # Define the graph title and labels 21 set title "Surface temperature" 22 set xlabel "Date" 23 set ylabel "Temperature [K]" 24 25 # Handle time as X axis 26 set xdata time # Data in X are dates 27 set timefmt '%d-%b-%Y %H:%M:%S' # Format of input dates 28 29 # Setup time output formatting 30 set xtics timedate 31 set xtics format '%m/%d/%Y' # Format of the date when print on X axis 32 set xtics 86400 # 1 day in seconds 33 34 # Define the plot style 35 set style line 1 lc "black" lw 2 # GCM 36 set style line 2 lc "black" pt 6 ps 1 # MC Flux 37 set style line 3 lc "black" pt 8 ps 1 # MC Sun 38 set errorbars 3 # Width of the error bars 39 40 # Move the labels above the graph 41 set key at graph 1, 1.17 42 43 # Increase the right margin to prevent the last date from being cut off 44 set rmargin 6 45 46 plot Tsrf u 1:3 title "GCM" w line ls 1, \ 47 Tsrf u 1:4:5 title "MC Flux" w errorbars ls 2, \ 48 Tsrf u 1:6:7 title "MC Sun" w errorbars ls 3