Archived
1
0

Modified colours. Added SVG template for 2012.

This commit is contained in:
Markus Birth 2016-09-04 01:00:56 +02:00
parent 9e0bf528cf
commit 1a2c60c35b
5 changed files with 82 additions and 14 deletions

View File

@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<graph>
<size>600, 600</size>
<fileformat>svg font "arial,10"</fileformat>
<start>year=2012, month=1, day=1, hour=0</start>
<stop>year=2012, month=12, day=31, hour=23</stop>
<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 (mm)</title>
</subplot>
</plot>
</graph>

View File

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<graph>
<size>600, 600</size>
<fileformat>pngcairo font "arial,8"</fileformat>
<fileformat>pngcairo font "arial,10"</fileformat>
<start>year=2016, month=1, day=1, hour=0</start>
<stop>year=2016, month=12, day=31, hour=0</stop>
<stop>year=2016, month=12, day=31, hour=23</stop>
<xformat>%b</xformat>
<xlabel>%Y</xlabel>
<dateformat></dateformat>
@ -14,28 +14,28 @@
<boxwidth>boxwidth / 2</boxwidth>
<subplot>
<style>box</style>
<colour>1</colour>
<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>6</colour>
<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>3</colour>
<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>5</colour>
<colour>rgb "#263238"</colour>
<title>Tiefstes Nachtminimum</title>
<xcalc>data['temp_out_min_lo_t']</xcalc>
<ycalc>data['temp_out_min_lo']</ycalc>
@ -45,11 +45,11 @@
<yrange>0, 120</yrange>
<source>monthly</source>
<subplot>
<colour>5</colour>
<colour>rgb "#2196f3"</colour>
<style>box</style>
<xcalc>data['start'] + timedelta(days=14)</xcalc>
<ycalc>data['rain']</ycalc>
<title>Monatl. Regenfall (mm)</title>
<title>Monatl. Regenfall ()</title>
</subplot>
</plot>
</graph>

View File

@ -3,7 +3,7 @@
<size>600, 600</size>
<fileformat>svg font "arial,10"</fileformat>
<start>year=2016, month=1, day=1, hour=0</start>
<stop>year=2016, month=12, day=31, hour=0</stop>
<stop>year=2016, month=12, day=31, hour=23</stop>
<xformat>%b</xformat>
<xlabel>%Y</xlabel>
<dateformat></dateformat>
@ -28,7 +28,7 @@
</subplot>
<subplot>
<style>box</style>
<colour>rgb "#607D8B"</colour>
<colour>rgb "#607d8b"</colour>
<title>Mittleres Nachtminimum</title>
<xcalc>data['start'] + timedelta(days=7)</xcalc>
<ycalc>data['temp_out_min_ave']</ycalc>
@ -45,11 +45,11 @@
<yrange>0, 120</yrange>
<source>monthly</source>
<subplot>
<colour>rgb "#2196F3"</colour>
<colour>rgb "#2196f3"</colour>
<style>box</style>
<xcalc>data['start'] + timedelta(days=14)</xcalc>
<ycalc>data['rain']</ycalc>
<title>Monatl. Regenfall (mm)</title>
<title>Monatl. Regenfall ()</title>
</subplot>
</plot>
</graph>

View File

@ -0,0 +1,12 @@
https://www.materialui.co/colors
rgb "#f44336" - Day temperature (Red 500)
rgb "#b71c1c" - Day max. temp. (Red 900)
rgb "#607d8b" - Night temperature (Blue-Grey 500)
rgb "#263238" - Night min. temp. (Blue-Grey 900)
rgb "#2196f3" - Rain (Blue 500)
Untested:
rgb "#ba68c8" - Dewpoint (Purple 300)
rgb "#4caf50" - Wind (Green 500)

View File

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<graph>
<terminal>pngcairo size 440,220 font "arial,8"</terminal>
<size>400, 220</size>
<fileformat>pngcairo font "arial,8"</fileformat>
<lmargin>6</lmargin>
<rmargin>7</rmargin>
<duration>hours=24</duration>
@ -25,7 +26,7 @@
</plot>
<plot>
<bmargin>1.6</bmargin>
<title>Niederschlag (mm)</title>
<title>Niederschlag ()</title>
<yrange>0, 6</yrange>
<y2range>0, 30</y2range>
<ylabel>stündl.</ylabel>