Archived
1
0

Compacted 2016 templates to use partials/includes.

This commit is contained in:
Markus Birth 2016-09-04 17:39:28 +02:00
parent 82020e9cf9
commit ad154bf068
2 changed files with 6 additions and 92 deletions

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<graph>
<graph xmlns:xi="http://www.w3.org/2001/XInclude">
<size>600, 600</size>
<fileformat>pngcairo font "arial,10"</fileformat>
<start>year=2016, month=1, day=1, hour=0</start>
@ -7,49 +7,6 @@
<xformat>%b</xformat>
<xlabel>%Y</xlabel>
<dateformat></dateformat>
<plot>
<title>Temperatur (℃)</title>
<yrange>-20, 50</yrange>
<source>monthly</source>
<boxwidth>boxwidth / 2</boxwidth>
<subplot>
<style>box</style>
<colour>rgb "#f44336"</colour>
<title>Mittleres Tagesmaximum</title>
<xcalc>data['start'] + timedelta(days=20)</xcalc>
<ycalc>data['temp_out_max_ave']</ycalc>
</subplot>
<subplot>
<style>+</style>
<colour>rgb "#b71c1c"</colour>
<title>Höchstes Tagesmaximum</title>
<xcalc>data['temp_out_max_hi_t']</xcalc>
<ycalc>data['temp_out_max_hi']</ycalc>
</subplot>
<subplot>
<style>box</style>
<colour>rgb "#607d8b"</colour>
<title>Mittleres Nachtminimum</title>
<xcalc>data['start'] + timedelta(days=7)</xcalc>
<ycalc>data['temp_out_min_ave']</ycalc>
</subplot>
<subplot>
<style>+</style>
<colour>rgb "#263238"</colour>
<title>Tiefstes Nachtminimum</title>
<xcalc>data['temp_out_min_lo_t']</xcalc>
<ycalc>data['temp_out_min_lo']</ycalc>
</subplot>
</plot>
<plot>
<yrange>0, 120</yrange>
<source>monthly</source>
<subplot>
<colour>rgb "#2196f3"</colour>
<style>box</style>
<xcalc>data['start'] + timedelta(days=14)</xcalc>
<ycalc>data['rain']</ycalc>
<title>Monatl. Regenfall (㎜)</title>
</subplot>
</plot>
<xi:include href="includes/year_temp.xml" parse="xml" />
<xi:include href="includes/year_rain.xml" parse="xml" />
</graph>

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<graph>
<graph xmlns:xi="http://www.w3.org/2001/XInclude">
<size>600, 600</size>
<fileformat>svg font "arial,10"</fileformat>
<start>year=2016, month=1, day=1, hour=0</start>
@ -7,49 +7,6 @@
<xformat>%b</xformat>
<xlabel>%Y</xlabel>
<dateformat></dateformat>
<plot>
<title>Temperatur (℃)</title>
<yrange>-20, 50</yrange>
<source>monthly</source>
<boxwidth>boxwidth / 2</boxwidth>
<subplot>
<style>box</style>
<colour>rgb "#f44336"</colour>
<title>Mittleres Tagesmaximum</title>
<xcalc>data['start'] + timedelta(days=20)</xcalc>
<ycalc>data['temp_out_max_ave']</ycalc>
</subplot>
<subplot>
<style>+</style>
<colour>rgb "#b71c1c"</colour>
<title>Höchstes Tagesmaximum</title>
<xcalc>data['temp_out_max_hi_t']</xcalc>
<ycalc>data['temp_out_max_hi']</ycalc>
</subplot>
<subplot>
<style>box</style>
<colour>rgb "#607d8b"</colour>
<title>Mittleres Nachtminimum</title>
<xcalc>data['start'] + timedelta(days=7)</xcalc>
<ycalc>data['temp_out_min_ave']</ycalc>
</subplot>
<subplot>
<style>+</style>
<colour>rgb "#263238"</colour>
<title>Tiefstes Nachtminimum</title>
<xcalc>data['temp_out_min_lo_t']</xcalc>
<ycalc>data['temp_out_min_lo']</ycalc>
</subplot>
</plot>
<plot>
<yrange>0, 120</yrange>
<source>monthly</source>
<subplot>
<colour>rgb "#2196f3"</colour>
<style>box</style>
<xcalc>data['start'] + timedelta(days=14)</xcalc>
<ycalc>data['rain']</ycalc>
<title>Monatl. Regenfall (㎜)</title>
</subplot>
</plot>
<xi:include href="includes/year_temp.xml" parse="xml" />
<xi:include href="includes/year_rain.xml" parse="xml" />
</graph>