cmt faire une droite rouge (par ex) au niveau de T° 0
- TiToine
- Site Admin
- Messages : 3356
- Inscription : lun. mars 20, 2006 11:16 am
- Localisation : Montréal
- Contact :
Salut,
Il faut ajouter dans la balise data, avec les autres sondes tracées :
<threshold axisbind="y1axis" legend="Limite 0°C" color1="FF0000FF" value="0" thick="2"/>
value : définit la valeur seuil 0°C dans ce cas.
axisbind : sur quel axe sera tracé la limite
legend, color1, thick, etc. ca marche comme le reste.
Edit : pour du rouge c'est biensur color1="FFFF0000"
Il faut ajouter dans la balise data, avec les autres sondes tracées :
<threshold axisbind="y1axis" legend="Limite 0°C" color1="FF0000FF" value="0" thick="2"/>
value : définit la valeur seuil 0°C dans ce cas.
axisbind : sur quel axe sera tracé la limite
legend, color1, thick, etc. ca marche comme le reste.
Edit : pour du rouge c'est biensur color1="FFFF0000"
Impeccable
mille mercis
et bonnes fête de Noël
(éventuellement tu peux voir les résultats de mon fichier que j'ai modifié sur cela et sur d'autres choses (graph3))
mille mercis
et bonnes fête de Noël
(éventuellement tu peux voir les résultats de mon fichier que j'ai modifié sur cela et sur d'autres choses (graph3))
Dernière modification par lipban le sam. déc. 23, 2006 7:30 pm, modifié 1 fois.
par rapport à ta proposition, j'ai mis l'épaisseur du trait à 1.5 au lieu de 2.
Pour les autres modif:
- j'ai rendu le bandeau supérieur transparent pour que la courbe de la pression apparaisse alors qu'elle est au dessus de 1040, ce qui est relativement peu fréquent (mon échelle de pression est fixe).
-Celle de température est glissante sur une plage fixe de 20° .
-J'ai mis les couleurs des échelles identiques aux courbes.
-j'ai suprimé les courbes de windchild et humidex qui ne m'interressent pas trop.
Pour les autres modif:
- j'ai rendu le bandeau supérieur transparent pour que la courbe de la pression apparaisse alors qu'elle est au dessus de 1040, ce qui est relativement peu fréquent (mon échelle de pression est fixe).
-Celle de température est glissante sur une plage fixe de 20° .
-J'ai mis les couleurs des échelles identiques aux courbes.
-j'ai suprimé les courbes de windchild et humidex qui ne m'interressent pas trop.
-
- Membre
- Messages : 192
- Inscription : jeu. avr. 27, 2006 7:01 pm
- Localisation : LAUSANNE
- Contact :
Super l'idée. Je l'ai également mise en pratique sur mon site => http://www.meteolausanne.com/pages/temperaturepag.html
Mille mercis pour ces super idées.
Mille mercis pour ces super idées.
Davis Vantage Pro 2 + avec ventilation forcée diurne / WeatherlinkIP 6.0.2 / GW Ver. 2.0290b / Windows 7 Pro 64 bits / MiniPC ZOTAC ZBOX ID41 PLUS 4Gb Ram 320Gb disque dur 2,5". http://www.meteolausanne.com
bonjour je n'arrive pas a trouver la balise data?? cordialementTiToine a écrit :Salut,
Il faut ajouter dans la balise data, avec les autres sondes tracées :
<threshold axisbind="y1axis" legend="Limite 0°C" color1="FF0000FF" value="0" thick="2"/>
value : définit la valeur seuil 0°C dans ce cas.
axisbind : sur quel axe sera tracé la limite
legend, color1, thick, etc. ca marche comme le reste.
Edit : pour du rouge c'est biensur color1="FFFF0000"
- TiToine
- Site Admin
- Messages : 3356
- Inscription : lun. mars 20, 2006 11:16 am
- Localisation : Montréal
- Contact :
Un morceau de la feuille de style tab-full-graph.xml ou l'on voit la balise data. Le threshold est à ajouter au même niveau que outdoor_humidity, heat_index, etc.:
Code : Tout sélectionner
<labels labelinterval="1" angle="0" format=".1" side="8" hide="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
</labels>
<ticks majorticks="5" minorticks="4" side="8" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y3axis>
<data>
<outdoor_humidity axisbind="y3axis" legend="Humidité extérieure" color1="3000FF00" color2="300000FF" antialiasing="1" filled="1" hide="0" />
<outdoor_humidity axisbind="y3axis" legend="Humidité extérieure" color1="300000FF" antialiasing="1" hidelegend="1" thick="1.2"/>
<wind_chill axisbind="y1axis" legend="Facteur vent" color1="FF0000FF" antialiasing="1" filled="0" hide="0" thick="1.2" pattern="CCCCCCCC"/>
<heat_index axisbind="y1axis" legend="Humidex" color1="FFFF0000" antialiasing="1" filled
- MAGNUS
- Membre
- Messages : 992
- Inscription : dim. mars 26, 2006 4:44 pm
- Localisation : VIDAUBAN (83) FRANCE
- Contact :
Re: cmt faire une droite rouge (par ex) au niveau de T° 0
Bonjour,
Cela ne fonctionne pas dans les tab bargraph. pour la température
Cordialement.
WS2300
<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
<image width="750" height="730" />
<frame width="750" height="730" position-x="0" position-y="0" shadow="0">
<title text="" alignement="3" angle="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</title>
<background color1="FFFFFFFF" color2="FFFCCF7C" gradient="50" gradient-direction="90" stretch="1" />
<border cornerradius="0" color="55555555" thick="1" />
</frame>
<!-- ================= Frame ================= -->
<frame width="90" height="90" position-x="2" position-y="2">
<background texture="statistics001.png" reload_texture="1" stretch="0" />
</frame>
<!-- ================= Titre 00 ================= -->
<textbox width="400" height="80" position-x="400" position-y="360" >
<text>
<font color="FF0000FF" facename="Time new roman" size="15" weight="400" italic="0" />
<line text="GRAPHIQUES MIS à JOUR le $CURRENT_DATE[%A %d %B %Y à %Hh 00]\n"/>
<line text=" MIS à JOUR le toutes les heures"/>
</text>
<background color1="" color2="" gradient="1" gradient-direction="180" stretch="1" />
</textbox>
<!-- ================= Titre 01 ================= -->
<textbox width="285" height="35" position-x="120" position-y="2" >
<text alignement="2">
<line text="TEMPERATURES du MOIS en cours"/>
<font color="FF804040" facename="Time new roman" size="17" weight="400" italic="0" />
</text>
<background color1="FFFFFFFF" color2="FF80FF80" gradient="1" gradient-direction="180" stretch="1" />
</textbox>
<!-- ================= Titre 02 ================= -->
<textbox width="285" height="35" position-x="120" position-y="370" >
<text>
<font color="FF804040" facename="Time new roman" size="17" weight="400" italic="0" />
<line text="TEMPERATURES de L'ANNEE en cours"/>
</text>
<background color1="FFFFFF00" color2="FFFF661C" gradient="1" gradient-direction="180" stretch="1" />
</textbox>
<!-- ================= First Lineplot ================= -->
<bargraph width="670" height="300" shadow="0" position-x="80" position-y="65" margin-top="0" margin-right="20" margin-bottom="30" margin-left="40">
<xaxis color="FF000000" grid="1" autoscale="0" min="0" max="0">
<labels labels="" labelinterval="1" angle="0" side="left" hide="0">
<font color="FF000000" facename="Arial" size="16" weight="400" italic="0" />
</labels>
<ticks majorticks="7" minorticks="4" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</xaxis>
<y1axis color="FF000000" grid="1" autoscale="0" min="-10" max="20" y-base="0.0" titleside="left" titlemargin="25">
<title text="Temperature ($UNIT[TEMPERATURE])" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="18" weight="400" italic="0" />
</title>
<labels labelinterval="1" angle="0" format=".0" side="left" hide="0" >
<font color="FF000000" facename="Arial" size="12" weight="400" italic="0" />
</labels>
<ticks majorticks="16" minorticks="1" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<data>
<threshold axisbind="y1axis" legend="Limite 0°C" color1="FF0000FF" value="0" thick="2"/>
<stats_month_min_outdoor_temperature axisbind="y1axis" legend="Minimum" color1="FF00FFFF" color2="FF0000FF" gradient="horizontal" antialiasing="1" filled="1" />
<stats_month_truemean_outdoor_temperature axisbind="y1axis" legend="Moyenne" color1="FFAAFFAA" color2="FF008000" gradient="horizontal" antialiasing="1" filled="1" />
<stats_month_max_outdoor_temperature axisbind="y1axis" legend="Maximum" color1="FFFFFF00" color2="FFFF7735" gradient="horizontal" antialiasing="1" filled="1" />
</data>
<legend orientation="0" margin="3" width="500" position-x="120" position-y="40" hide="0" shadow="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
<border cornerradius="0" color="" thick="1" />
<background color1="" color2="" gradient="1" gradient-direction="90"/>
</legend>
<graphbackground color1="" color2="" gradient="1" gradient-direction="90" />
</bargraph>
<!-- ================= Statistics du MOIS ================= -->
<textbox width="370" height="62" shadow="0" position-x="380" position-y="2" margin="10" >
<border cornerradius="0" color="" thick="1" />
<text alignement="2">
<line text="Température ext. min:\t\t$MIN[outdoor_temperature]$UNIT[TEMPERATURE]\t\t$MINDATE[outdoor_temperature,%d/%m/%Y à %Hh%M]" />
<line text="Température ext. max:\t\t$MAX[outdoor_temperature]$UNIT[TEMPERATURE]\t\t$MAXDATE[outdoor_temperature,%d/%m/%Y à %Hh%M]" />
<line text="Température ext. moyenne :\t$MEAN[outdoor_temperature]$UNIT[TEMPERATURE]\n"/>
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</text>
<background color1="FFFFFFFF" color2="FF80FF80" gradient="1" gradient-direction="180" stretch="1" />
</textbox>
<!-- ================= second Lineplot ================= -->
<bargraph width="670" height="300" shadow="0" position-x="80" position-y="430" margin-top="0" margin-right="20" margin-bottom="30" margin-left="40">
<xaxis color="FF000000" grid="1" autoscale="0" min="0" max="0">
<labels labels="Janv.;Fév.;Mars;Avril;Mai;Juin;Juil.;Août;Sep.;Oct.;Nov.;Déc." labelinterval="1" angle="0" side="left" hide="0">
<font color="FF000000" facename="Arial" size="16" weight="400" italic="0" />
</labels>
<ticks majorticks="7" minorticks="4" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</xaxis>
<y1axis color="FF000000" grid="1" autoscale="0" min="-10" max="20" y-base="0.0" titleside="left" titlemargin="25">
<title text="Temperature ($UNIT[TEMPERATURE])" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="18" weight="400" italic="0" />
</title>
<labels labelinterval="1" angle="0" format=".0" side="left" hide="0" >
<font color="FF000000" facename="Arial" size="12" weight="400" italic="0" />
</labels>
<ticks majorticks="16" minorticks="1" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<data>
<stats_year_min_outdoor_temperature axisbind="y1axis" legend="Minimum" color1="FF00FFFF" color2="FF0000FF" gradient="horizontal" antialiasing="1" filled="1" />
<stats_year_truemean_outdoor_temperature axisbind="y1axis" legend="Moyenne" color1="FFAAFFAA" color2="FF008000" gradient="horizontal" antialiasing="1" filled="1" />
<stats_year_max_outdoor_temperature axisbind="y1axis" legend="Maximum" color1="FFFFFF00" color2="FFFF7735" gradient="horizontal" antialiasing="1" filled="1" />
</data>
<legend orientation="0" margin="3" width="500" position-x="120" position-y="405" hide="0" shadow="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
<border cornerradius="0" color="" thick="1" />
<background color1="" color2="" gradient="1" gradient-direction="90"/>
</legend>
<graphbackground color1="" color2="" gradient="1" gradient-direction="90" />
</bargraph>
</stylesheet>
Cela ne fonctionne pas dans les tab bargraph. pour la température
Cordialement.
WS2300
<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
<image width="750" height="730" />
<frame width="750" height="730" position-x="0" position-y="0" shadow="0">
<title text="" alignement="3" angle="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</title>
<background color1="FFFFFFFF" color2="FFFCCF7C" gradient="50" gradient-direction="90" stretch="1" />
<border cornerradius="0" color="55555555" thick="1" />
</frame>
<!-- ================= Frame ================= -->
<frame width="90" height="90" position-x="2" position-y="2">
<background texture="statistics001.png" reload_texture="1" stretch="0" />
</frame>
<!-- ================= Titre 00 ================= -->
<textbox width="400" height="80" position-x="400" position-y="360" >
<text>
<font color="FF0000FF" facename="Time new roman" size="15" weight="400" italic="0" />
<line text="GRAPHIQUES MIS à JOUR le $CURRENT_DATE[%A %d %B %Y à %Hh 00]\n"/>
<line text=" MIS à JOUR le toutes les heures"/>
</text>
<background color1="" color2="" gradient="1" gradient-direction="180" stretch="1" />
</textbox>
<!-- ================= Titre 01 ================= -->
<textbox width="285" height="35" position-x="120" position-y="2" >
<text alignement="2">
<line text="TEMPERATURES du MOIS en cours"/>
<font color="FF804040" facename="Time new roman" size="17" weight="400" italic="0" />
</text>
<background color1="FFFFFFFF" color2="FF80FF80" gradient="1" gradient-direction="180" stretch="1" />
</textbox>
<!-- ================= Titre 02 ================= -->
<textbox width="285" height="35" position-x="120" position-y="370" >
<text>
<font color="FF804040" facename="Time new roman" size="17" weight="400" italic="0" />
<line text="TEMPERATURES de L'ANNEE en cours"/>
</text>
<background color1="FFFFFF00" color2="FFFF661C" gradient="1" gradient-direction="180" stretch="1" />
</textbox>
<!-- ================= First Lineplot ================= -->
<bargraph width="670" height="300" shadow="0" position-x="80" position-y="65" margin-top="0" margin-right="20" margin-bottom="30" margin-left="40">
<xaxis color="FF000000" grid="1" autoscale="0" min="0" max="0">
<labels labels="" labelinterval="1" angle="0" side="left" hide="0">
<font color="FF000000" facename="Arial" size="16" weight="400" italic="0" />
</labels>
<ticks majorticks="7" minorticks="4" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</xaxis>
<y1axis color="FF000000" grid="1" autoscale="0" min="-10" max="20" y-base="0.0" titleside="left" titlemargin="25">
<title text="Temperature ($UNIT[TEMPERATURE])" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="18" weight="400" italic="0" />
</title>
<labels labelinterval="1" angle="0" format=".0" side="left" hide="0" >
<font color="FF000000" facename="Arial" size="12" weight="400" italic="0" />
</labels>
<ticks majorticks="16" minorticks="1" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<data>
<threshold axisbind="y1axis" legend="Limite 0°C" color1="FF0000FF" value="0" thick="2"/>
<stats_month_min_outdoor_temperature axisbind="y1axis" legend="Minimum" color1="FF00FFFF" color2="FF0000FF" gradient="horizontal" antialiasing="1" filled="1" />
<stats_month_truemean_outdoor_temperature axisbind="y1axis" legend="Moyenne" color1="FFAAFFAA" color2="FF008000" gradient="horizontal" antialiasing="1" filled="1" />
<stats_month_max_outdoor_temperature axisbind="y1axis" legend="Maximum" color1="FFFFFF00" color2="FFFF7735" gradient="horizontal" antialiasing="1" filled="1" />
</data>
<legend orientation="0" margin="3" width="500" position-x="120" position-y="40" hide="0" shadow="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
<border cornerradius="0" color="" thick="1" />
<background color1="" color2="" gradient="1" gradient-direction="90"/>
</legend>
<graphbackground color1="" color2="" gradient="1" gradient-direction="90" />
</bargraph>
<!-- ================= Statistics du MOIS ================= -->
<textbox width="370" height="62" shadow="0" position-x="380" position-y="2" margin="10" >
<border cornerradius="0" color="" thick="1" />
<text alignement="2">
<line text="Température ext. min:\t\t$MIN[outdoor_temperature]$UNIT[TEMPERATURE]\t\t$MINDATE[outdoor_temperature,%d/%m/%Y à %Hh%M]" />
<line text="Température ext. max:\t\t$MAX[outdoor_temperature]$UNIT[TEMPERATURE]\t\t$MAXDATE[outdoor_temperature,%d/%m/%Y à %Hh%M]" />
<line text="Température ext. moyenne :\t$MEAN[outdoor_temperature]$UNIT[TEMPERATURE]\n"/>
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</text>
<background color1="FFFFFFFF" color2="FF80FF80" gradient="1" gradient-direction="180" stretch="1" />
</textbox>
<!-- ================= second Lineplot ================= -->
<bargraph width="670" height="300" shadow="0" position-x="80" position-y="430" margin-top="0" margin-right="20" margin-bottom="30" margin-left="40">
<xaxis color="FF000000" grid="1" autoscale="0" min="0" max="0">
<labels labels="Janv.;Fév.;Mars;Avril;Mai;Juin;Juil.;Août;Sep.;Oct.;Nov.;Déc." labelinterval="1" angle="0" side="left" hide="0">
<font color="FF000000" facename="Arial" size="16" weight="400" italic="0" />
</labels>
<ticks majorticks="7" minorticks="4" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</xaxis>
<y1axis color="FF000000" grid="1" autoscale="0" min="-10" max="20" y-base="0.0" titleside="left" titlemargin="25">
<title text="Temperature ($UNIT[TEMPERATURE])" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="18" weight="400" italic="0" />
</title>
<labels labelinterval="1" angle="0" format=".0" side="left" hide="0" >
<font color="FF000000" facename="Arial" size="12" weight="400" italic="0" />
</labels>
<ticks majorticks="16" minorticks="1" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<data>
<stats_year_min_outdoor_temperature axisbind="y1axis" legend="Minimum" color1="FF00FFFF" color2="FF0000FF" gradient="horizontal" antialiasing="1" filled="1" />
<stats_year_truemean_outdoor_temperature axisbind="y1axis" legend="Moyenne" color1="FFAAFFAA" color2="FF008000" gradient="horizontal" antialiasing="1" filled="1" />
<stats_year_max_outdoor_temperature axisbind="y1axis" legend="Maximum" color1="FFFFFF00" color2="FFFF7735" gradient="horizontal" antialiasing="1" filled="1" />
</data>
<legend orientation="0" margin="3" width="500" position-x="120" position-y="405" hide="0" shadow="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
<border cornerradius="0" color="" thick="1" />
<background color1="" color2="" gradient="1" gradient-direction="90"/>
</legend>
<graphbackground color1="" color2="" gradient="1" gradient-direction="90" />
</bargraph>
</stylesheet>
Station WMR 200 avec XNet_meteo V 2014-10-29a Logiciels:Graphweather V 3.0.16, Noaa Template2, Windows 7
Mon abri météo ici :http://www.vardecouverte.fr/sta%20bc2008.htm
Site Web : http://www.vardecouverte.fr

Mon abri météo ici :http://www.vardecouverte.fr/sta%20bc2008.htm
Site Web : http://www.vardecouverte.fr

- jturlier
- Membre
- Messages : 3149
- Inscription : mar. août 22, 2006 8:38 am
- Localisation : 34410 Sérignan - Languedoc
- Contact :
Re: cmt faire une droite rouge (par ex) au niveau de T° 0
Bonjour Magnus,MAGNUS888 a écrit :Bonjour,
Cela ne fonctionne pas dans les tab bargraph. pour la température
Cordialement.
cela semble logique, vous essayez d'appliquer la balise threshold à l'objet bargraph.
alors qu'elle n'appartient (pour le moment) qu'à l'objet lineplot.
Cordialement
Jean
- MAGNUS
- Membre
- Messages : 992
- Inscription : dim. mars 26, 2006 4:44 pm
- Localisation : VIDAUBAN (83) FRANCE
- Contact :
Re: cmt faire une droite rouge (par ex) au niveau de T° 0
Merci de votre réponse et pardonnez mon ignorance.jturlier a écrit :Bonjour Magnus,MAGNUS888 a écrit :Bonjour,
Cela ne fonctionne pas dans les tab bargraph. pour la température
Cordialement.
cela semble logique, vous essayez d'appliquer la balise threshold à l'objet bargraph.
alors qu'elle n'appartient (pour le moment) qu'à l'objet lineplot.
Cordialement
Jean
Cordialement
Station WMR 200 avec XNet_meteo V 2014-10-29a Logiciels:Graphweather V 3.0.16, Noaa Template2, Windows 7
Mon abri météo ici :http://www.vardecouverte.fr/sta%20bc2008.htm
Site Web : http://www.vardecouverte.fr

Mon abri météo ici :http://www.vardecouverte.fr/sta%20bc2008.htm
Site Web : http://www.vardecouverte.fr

- jturlier
- Membre
- Messages : 3149
- Inscription : mar. août 22, 2006 8:38 am
- Localisation : 34410 Sérignan - Languedoc
- Contact :
Re: cmt faire une droite rouge (par ex) au niveau de T° 0
Re bonjour,
personne ne peut tout savoir et vous n'avez pas à vous excuser,
Pour contourner le problème vous pouvez créer un graphe de type lineplot en transparence totale, que vous superposez sur le bargraph existant, avec la même taille, les mêmes données de température pour obtenir la même échelle sur l'axe des X, et avec uniquement une couleur non transparente pour la valeur de treshold. C'est tiré par les cheveux, mais ça devrait fonctionner
Bonne soirée
Jean
personne ne peut tout savoir et vous n'avez pas à vous excuser,
Pour contourner le problème vous pouvez créer un graphe de type lineplot en transparence totale, que vous superposez sur le bargraph existant, avec la même taille, les mêmes données de température pour obtenir la même échelle sur l'axe des X, et avec uniquement une couleur non transparente pour la valeur de treshold. C'est tiré par les cheveux, mais ça devrait fonctionner
Bonne soirée
Jean
Re: cmt faire une droite rouge (par ex) au niveau de T° 0
Salut à tous,
D'après ce que j'ai compris à la lecture des modifs faites apr Antoine, la balise threshold est valide avec les bargraph depuis la version 2.0.265b.
Mais je ne l'ai pas encore testée.
D'après ce que j'ai compris à la lecture des modifs faites apr Antoine, la balise threshold est valide avec les bargraph depuis la version 2.0.265b.
Mais je ne l'ai pas encore testée.
Ma station => http://www.meteo-boisney.fr

--- Station Vantage Pro 2 - Plugin VantagePro.dll ---
--- GraphWeather Version 2.0.312b ---

--- Station Vantage Pro 2 - Plugin VantagePro.dll ---
--- GraphWeather Version 2.0.312b ---