Graph with mean data...

Forum for english speaking users
Répondre
iz1kbp
Membre
Messages : 83
Inscription : dim. mars 16, 2008 1:14 pm

Graph with mean data...

Message par iz1kbp »

Hi Antoine,
I wanto to ask if is there an option to obtain a graph like this in attached pic.
Pratically,It is generated from Heavy Weather program (I've got the Lacrosse ws3650) and on Y axis I've plotted the mean value of outdoor temperature and on x axis the relative day.
Is possible obtain this kind of graph with GW ?

Thank's again

Mario
Vous ne pouvez pas consulter les pièces jointes insérées à ce message.
Avatar de l’utilisateur
TiToine
Site Admin
Messages : 3356
Inscription : lun. mars 20, 2006 11:16 am
Localisation : Montréal
Contact :

Re: Graph with mean data...

Message par TiToine »

Yes, but not exactly the same, with bargraph.
For example (you can suppress the min max if you want):

Image

This graphs has been generated in statistics, but it can be generated in a GW tab.
iz1kbp
Membre
Messages : 83
Inscription : dim. mars 16, 2008 1:14 pm

Re: Graph with mean data...

Message par iz1kbp »

ok Antoine,
only a question, I do not understand how can I writhe the X axis label code.
Is it manual (1,2,3...etc etc) or may be auto?
Please,could you send me the syntax for X axis month label?

Thank's anyway

mario
diving-91
Membre
Messages : 104
Inscription : mar. oct. 21, 2008 11:05 pm
Localisation : Quincy-Sous-Sénart (F-91480)
Contact :

Re: Graph with mean data...

Message par diving-91 »

Hello,

I see this question late..but you may still try to find the solution.
Like Antoine did mention, the monthly statistic example include such an XAxis configuration. To see it, juste go in the statistics folder and open the graph-month-1.xml example here you will see how xaxis is configured.
hope this helps

Hervé
<----------------------------------------------------->
Station IROX PRO-X USB / WeatherCapture/GraphWeather
http://diving91.homeip.net/
iz1kbp
Membre
Messages : 83
Inscription : dim. mars 16, 2008 1:14 pm

Re: Graph with mean data...

Message par iz1kbp »

Hi Hervè,
than's for the replay...
Yes...I've seen the X axis syntax in last (or earlyer, do not rimember well) revision.

Mario ;)
Avatar de l’utilisateur
TiToine
Site Admin
Messages : 3356
Inscription : lun. mars 20, 2006 11:16 am
Localisation : Montréal
Contact :

Re: Graph with mean data...

Message par TiToine »

You can override the labels in adding the labels="..." in xaxis labels tag.

Ex: <labels labels="1;2;3;..." ....>
bertilh
Membre
Messages : 14
Inscription : jeu. janv. 08, 2009 11:17 pm

Re: Graph with mean data...

Message par bertilh »

Hello,

Did make a lineplot graph with minimum, mean and maximum temperature in GW using the functions
stats_month_min_outdoor_temperature, stats_month_truemean_outdoor_temperature and stats_month_max_outdoor_temperature.
The plot is only for the current month. How can I make a plot for last month or older months.

How could I label the Xaxis. The xaxis from the example graph-month-1.xml with format="Y" don´t work.
See the attached file.
The Statistics text at the bottom shows correct $StarDate and $StopDate.
Vous ne pouvez pas consulter les pièces jointes insérées à ce message.
bertilh
Membre
Messages : 14
Inscription : jeu. janv. 08, 2009 11:17 pm

Re: Graph with mean data...

Message par bertilh »

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 :idea:

How do I make the graph for other month than the current month.
Vous ne pouvez pas consulter les pièces jointes insérées à ce message.
Avatar de l’utilisateur
jturlier
Membre
Messages : 3149
Inscription : mar. août 22, 2006 8:38 am
Localisation : 34410 Sérignan - Languedoc
Contact :

Re: Graph with mean data...

Message par jturlier »

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 :idea:

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
Répondre