bertilh a écrit:
Did get the right scale on Xaxis by using format="S". I think S is seconds
Would like to have a plot like the one MeteOzoir page
http://meteozoir.homeip.net/indexa.php?image=graph2.jpg How do I make the graph for other month than the current month.
Hello berthil,
if you want to get the stylesheets, no pb. However, I have to tell you that i work directly with a sql engine (postgresql, but i could have used a mysql or any other one) and that i peek directly my (historical & statistical) data from this database... so I do not use any GW statistical data for graph production !
To graph older months, you may do it manually : define the time interval range, then "save image as".
Here is the english version of xml sheet code :
Be carefull, some graphs do not match with their GW name eg. average temperature is indoor_temperature_1
Plse feel free to contact me.
<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
<image width="850" height="800" />
<frame width="850" height="800" position-x="0" position-y="0" shadow="0">
<title text="MONTHLY MINI / MAXI VALUES" alignement="4" angle="0">
<font color="FF000000" facename="Arial" size="28" weight="600" italic="0"/>
</title>
<background color1="eeffffcc" color2="eeaa9977" gradient="1" gradient-direction="90"/>
<border cornerradius="0" color="FF555555" thick="0"/>
</frame>
<textbox width="150" height="85" position-x="675" position-y="130" shadow="6" margin="3">
<text alignement="5" text="Legend"/>
<background color1="eeffffcc" color2="eeaa9977" gradient="1" gradient-direction="90"/>
<border cornerradius="2" color="FF909090" thick="1"/>
</textbox>
<textbox width="150" height="85" position-x="675" position-y="360" shadow="6" margin="3">
<text alignement="5" text="Legend"/>
<background color1="eeffffcc" color2="eeaa9977" gradient="1" gradient-direction="90"/>
<border cornerradius="2" color="FF909090" thick="1"/>
</textbox>
<textbox width="150" height="85" position-x="675" position-y="590" shadow="6" margin="3">
<text alignement="5" text="Legend"/>
<background color1="eeffffcc" color2="eeaa9977" gradient="1" gradient-direction="90"/>
<border cornerradius="2" color="FF909090" thick="1"/>
</textbox>
<!-- ================= First Lineplot ================= -->
<lineplot width="850" height="200" shadow="0" position-x="5" position-y="95" margin-top="40" margin-right="280" margin-bottom="5" margin-left="75" >
<title text="Temperatures \nDaily Values" alignement="2" angle="0">
<font color="FF000000" facename="Arial" size="18" weight="600" italic="1" />
</title>
<border cornerradius="0" color="FF000000" thick="0" />
<xaxis color="FF000000" grid="1" autoscale="0" min="0" max="0" titleside="32" >
<title text="" alignement="20" angle="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</title>
<labels labelinterval="1" angle="0" format="%d/%m" side="2" hide="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</labels>
<ticks majorticks="13" minorticks="0" side="32" hidefirst="0" hidelast="0" hideminorticks="1" hide="0" />
</xaxis>
<y1axis color="FF0000ff" grid="1" autoscale="1" min="0" max="100" titleside="2" titlemargin="35">
<title text="Temperature ($UNIT[TEMPERATURE])" alignement="20" angle="0">
<font color="FF0000ff" facename="Arial" size="14" weight="400" italic="1" />
</title>
<labels labelinterval="1" angle="0" format=".0" side="2" hide="0">
<font color="FF0000ff" facename="Arial" size="14" weight="400" italic="0" />
</labels>
<ticks majorticks="9" minorticks="4" side="2" hidefirst="0" hidelast="0" hideminorticks="1" hide="0" />
</y1axis>
<legend position-x="675" position-y="140" hide="0" shadow="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
<border cornerradius="10" color="FF000000" thick="0" />
<background color="00FFFFFF" />
</legend>
<background color="00ffffff" texture="" stretch="1" />
<graphbackground color1="FF000000" color2="99FFFFFF" gradient="1" gradient-direction="90"/>
<data>
<indoor_temperature_1 axisbind="y1axis" legend="Minimum T°" color1="FF0000FF" color2="FF0000FF" antialiasing="1" filled="0" hide="0" thick="1.2"/>
<outdoor_temperature_1 axisbind="y1axis" legend="Maximum T°" color1="FFFF0000" color2="FFFF0000" antialiasing="1" filled="0" hide="0" thick="1.2"/>
<temperature_1_1 axisbind="y1axis" legend="Average T°" color1="FF00FF00" color2="FF00FF00" antialiasing="1" filled="0" hide="0" thick="1.2"/>
</data>
</lineplot>
<!-- ================= 2nd Lineplot ================= -->
<lineplot width="850" height="200" shadow="0" position-x="5" position-y="325" margin-top="40" margin-right="280" margin-bottom="5" margin-left="75" >
<title text="Humidity \nDaily Values" alignement="2" angle="0">
<font color="FF000000" facename="Arial" size="18" weight="600" italic="1" />
</title>
<border cornerradius="0" color="FF000000" thick="0" />
<xaxis color="FF000000" grid="1" autoscale="0" min="0" max="0" titleside="32" >
<title text="" alignement="20" angle="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</title>
<labels labelinterval="1" angle="0" format="%d/%m" side="2" hide="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</labels>
<ticks majorticks="13" minorticks="1" side="32" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</xaxis>
<y1axis side="2" color="FF000000" grid="1" autoscale="1" min="0" max="100" titleside="2" titlemargin="35">
<title text="Humidity %" alignement="20" angle="0">
<font color="FF0000FF" facename="Arial" size="14" weight="400" italic="1" />
</title>
<labels labelinterval="1" angle="0" format=".0" side="2" hide="0">
<font color="FF0000FF" facename="Arial" size="14" weight="400" italic="0" />
</labels>
<ticks majorticks="9" minorticks="4" side="2" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<legend position-x="675" position-y="370" hide="0" shadow="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
<border cornerradius="10" color="FF000000" thick="0" />
<background color="00FFFFFF" />
</legend>
<background color="00FFFFFF" texture="" stretch="1" />
<graphbackground color1="FF000000" color2="99FFFFFF" gradient="1" gradient-direction="90"/>
<data>
<indoor_humidity_1 axisbind="y1axis" legend="Minimum H%" color1="ff0000FF" color2="ff000FF" antialiasing="1" filled="0" hide="0" thick="1.2" />
<outdoor_humidity_1 axisbind="y1axis" legend="Maximum H%" color1="ffFF0000" color2="ffFf0000" antialiasing="1" filled="0" hide="0" thick="1.2" />
<humidity_1_1 axisbind="y1axis" legend="Average H%" color1="ff00FF00" color2="ff00FF00" antialiasing="1" filled="0" hide="0" thick="1.2" />
</data>
</lineplot>
<!-- ================= 3eme Lineplot ================= -->
<lineplot width="850" height="200" shadow="0" position-x="5" position-y="555" margin-top="40" margin-right="280" margin-bottom="5" margin-left="75" >
<title text="Sealevel Pressure \nDaily Values" alignement="2" angle="0">
<font color="FF000000" facename="Arial" size="18" weight="600" italic="1" />
</title>
<border cornerradius="0" color="FF000000" thick="0" />
<xaxis color="FF000000" grid="1" autoscale="0" min="0" max="0" titleside="32" >
<title text="" alignement="20" angle="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</title>
<labels labelinterval="1" angle="0" format="%d/%m" side="2" hide="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</labels>
<ticks majorticks="13" minorticks="1" side="32" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</xaxis>
<y1axis side="2" color="FF0000ff" grid="1" autoscale="1" min="0" max="0" titleside="2" titlemargin="35">
<title text="Sealevel Pressure ($UNIT[PRESSURE])" alignement="20" angle="0">
<font color="FF0000ff" facename="Arial" size="14" weight="400" italic="1"/>
</title>
<labels labelinterval="1" angle="0" format=".0" side="2" hide="0">
<font color="FF0000ff" facename="Arial" size="14" weight="400" italic="0" />
</labels>
<ticks majorticks="9" minorticks="4" side="2" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<y2axis side="8" color="FF0000ff" grid="0" autoscale="1" min="0" max="0" titleside="8" titlemargin="30">
<title text="Rainfall ($UNIT[RAINFALL])" alignement="20" angle="0">
<font color="FF0000ff" facename="Arial" size="14" weight="400" italic="1"/>
</title>
<labels labelinterval="1" angle="0" format=".0" side="8" hide="0">
<font color="FF0000ff" facename="Arial" size="14" weight="400" italic="0"/>
</labels>
<ticks majorticks="5" minorticks="4" side="8" hidefirst="0" hidelast="0" hideminorticks="0" hide="0"/>
</y2axis>
<y3axis side="8" color="FF0000ff" grid="0" autoscale="1" titleside="8" titlemargin="30">
<title text="Gust" alignement="20" angle="0">
<font color="FF0000ff" facename="Arial" size="14" weight="400" italic="1" />
</title>
<labels labelinterval="1" angle="0" format=".0" side="8" hide="0">
<font color="FF0000ff" facename="Arial" size="14" weight="400" italic="0"/>
</labels>
<ticks majorticks="5" minorticks="4" side="8" hidefirst="0" hidelast="0" hideminorticks="0" hide="0"/>
</y3axis>
<legend position-x="675" position-y="600" hide="0" shadow="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
<border cornerradius="10" color="FF000000" thick="0" />
<background color="00FFFFFF" />
</legend>
<background color="00FFFFFF" texture="" stretch="1" />
<graphbackground color1="FF000000" color2="99FFFFFF" gradient="1" gradient-direction="90"/>
<data>
<relative_pressure_1 axisbind="y1axis" legend="Sealevel Pressure" color1="ff00FF00" color2="ff00FF00" antialiasing="1" filled="0" hide="0" thick="1.2" />
<rainfall_24h_1 axisbind="y2axis" legend="Rainfall" color1="ff0000FF" color2="ff000FF" antialiasing="1" filled="0" hide="0" thick="1.2" />
<wind_speed_1 axisbind="y3axis" legend="Gust" color1="ffFF0000" color2="ffFf0000" antialiasing="1" filled="0" hide="0" thick="1.2" />
</data>
</lineplot>
</stylesheet>Jean