From ad154bf06836da72f138fa5f34c77fe7dca807a6 Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Sun, 4 Sep 2016 17:39:28 +0200 Subject: [PATCH] Compacted 2016 templates to use partials/includes. --- _graph_templates/2016.png.xml | 49 +++-------------------------------- _graph_templates/2016.svg.xml | 49 +++-------------------------------- 2 files changed, 6 insertions(+), 92 deletions(-) diff --git a/_graph_templates/2016.png.xml b/_graph_templates/2016.png.xml index d323a02..bc2cae8 100644 --- a/_graph_templates/2016.png.xml +++ b/_graph_templates/2016.png.xml @@ -1,5 +1,5 @@ - + 600, 600 pngcairo font "arial,10" year=2016, month=1, day=1, hour=0 @@ -7,49 +7,6 @@ %b %Y - - Temperatur (℃) - -20, 50 - monthly - boxwidth / 2 - - - rgb "#f44336" - Mittleres Tagesmaximum - data['start'] + timedelta(days=20) - data['temp_out_max_ave'] - - - - rgb "#b71c1c" - Höchstes Tagesmaximum - data['temp_out_max_hi_t'] - data['temp_out_max_hi'] - - - - rgb "#607d8b" - Mittleres Nachtminimum - data['start'] + timedelta(days=7) - data['temp_out_min_ave'] - - - - rgb "#263238" - Tiefstes Nachtminimum - data['temp_out_min_lo_t'] - data['temp_out_min_lo'] - - - - 0, 120 - monthly - - rgb "#2196f3" - - data['start'] + timedelta(days=14) - data['rain'] - Monatl. Regenfall (㎜) - - + + diff --git a/_graph_templates/2016.svg.xml b/_graph_templates/2016.svg.xml index f60f14c..f095617 100644 --- a/_graph_templates/2016.svg.xml +++ b/_graph_templates/2016.svg.xml @@ -1,5 +1,5 @@ - + 600, 600 svg font "arial,10" year=2016, month=1, day=1, hour=0 @@ -7,49 +7,6 @@ %b %Y - - Temperatur (℃) - -20, 50 - monthly - boxwidth / 2 - - - rgb "#f44336" - Mittleres Tagesmaximum - data['start'] + timedelta(days=20) - data['temp_out_max_ave'] - - - - rgb "#b71c1c" - Höchstes Tagesmaximum - data['temp_out_max_hi_t'] - data['temp_out_max_hi'] - - - - rgb "#607d8b" - Mittleres Nachtminimum - data['start'] + timedelta(days=7) - data['temp_out_min_ave'] - - - - rgb "#263238" - Tiefstes Nachtminimum - data['temp_out_min_lo_t'] - data['temp_out_min_lo'] - - - - 0, 120 - monthly - - rgb "#2196f3" - - data['start'] + timedelta(days=14) - data['rain'] - Monatl. Regenfall (㎜) - - + +