"stats_month_xxxx" dans un "Lineplot"

Une question, un bug ?
Répondre
Pierre83
Membre
Messages : 41
Inscription : mar. avr. 20, 2010 2:32 pm

"stats_month_xxxx" dans un "Lineplot"

Message par Pierre83 »

Bonjour,
L'utilisation de "stats_month_max_outdoor_temperature" ou de "stats_month_min_outdoor_temperature" dans un "Lineplot" a pour résultat un axe des X curieux, ci joint le code et le graphe.
Si quelqu'un a une idée, merci
Pierre

<lineplot width="400" height="180" shadow="0" position-x="10" position-y="49" margin-top="20" margin-right="15" margin-bottom="20" margin-left="30" >
<title text="Mois de $StartDate[%B]" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="0" />
</title>
<xaxis color="FF000000" grid="1" autoscale="1" min="0" max="0">
<title text="" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="0" />
</title>
<labels labelinterval="0" angle="0" format="%d" side="left" hide="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="0" />
</labels>
<ticks majorticks="1" minorticks="1" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</xaxis>
<y1axis color="FF000000" grid="1" autoscale="1" min="0" max="0" titleside="left" titlemargin="35">
<labels labelinterval="1" angle="0" format=".1" side="left" hide="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="0" />
</labels>
<ticks majorticks="0" minorticks="0" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<data>
<stats_month_max_outdoor_temperature axisbind="y1axis" legend="" color1="FFFF0000" antialiasing="1" hidelegend="1" thick="2"/>
<stats_month_min_outdoor_temperature axisbind="y1axis" legend="" color1="FF0000FF" antialiasing="1" hidelegend="1" thick="2"/> -->
</data>
<background color="FFCCCCCC" stretch="0" />
<graphbackground color="FFCCCCCC" texture="" />
<border cornerradius="0" color="FF000000" thick="1" />
</lineplot>
Vous ne pouvez pas consulter les pièces jointes insérées à ce message.
Avatar de l’utilisateur
MAGNUS
Membre
Messages : 992
Inscription : dim. mars 26, 2006 4:44 pm
Localisation : VIDAUBAN (83) FRANCE
Contact :

Re: "stats_month_xxxx" dans un "Lineplot"

Message par MAGNUS »

Bonjour,
Cette ligne comporte une omission:
<ticks majorticks="0" minorticks="0" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />

Elle doit comporter un nombre pour ticks majorticks et minorticks
Exemple :
<ticks majorticks="7" minorticks="4" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
Le 7 représentant le nombre des axes principaux et 4 les secondaires.
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
Image
Pierre83
Membre
Messages : 41
Inscription : mar. avr. 20, 2010 2:32 pm

Re: "stats_month_xxxx" dans un "Lineplot"

Message par Pierre83 »

Bonjour Magnus,

Dans cette ligne, Major ticks et Minor ticks ne sont pas opérationnels, d'autre part, ils concernent l'axe de Y. Merci tout de même.

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

Re: "stats_month_xxxx" dans un "Lineplot"

Message par TiToine »

Tu peux essayer ca:

<xaxis color="FF000000" grid="1" autoscale="1" min="0" max="0">
<title text="" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="0" />
</title>
<titles text="1;2;3;4">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</titles>
<labels labelinterval="0" angle="0" format="%d" side="left" hide="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="0" />
</labels>
<ticks majorticks="1" minorticks="1" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</xaxis>


1;2;3;4 devraient se retrouver en titre des majorticks.
Je vais regarder de mon coté si ca n'est pas un bug.
Pierre83
Membre
Messages : 41
Inscription : mar. avr. 20, 2010 2:32 pm

Re: "stats_month_xxxx" dans un "Lineplot"

Message par Pierre83 »

Bonsoir Antoine,
Désolé, ça n'affiche pas 1,2,3 ou 4. J'ignore si c'est un bug mais je te remercie pour GraphWeather.
Pierre
Avatar de l’utilisateur
MAGNUS
Membre
Messages : 992
Inscription : dim. mars 26, 2006 4:44 pm
Localisation : VIDAUBAN (83) FRANCE
Contact :

Re: "stats_month_xxxx" dans un "Lineplot"

Message par MAGNUS »

Bonjour Pierre83
Pourrais-tu m'envoyer le stylesheet complet que je l'essaye de mon coté.
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
Image
Pierre83
Membre
Messages : 41
Inscription : mar. avr. 20, 2010 2:32 pm

Re: "stats_month_xxxx" dans un "Lineplot"

Message par Pierre83 »

Bonjour Magnus,
le stylesheet est extrêmement simple, le voilà:
<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
<image width="1100" height="930" />
<frame width="1100" height="930" position-x="0" position-y="0" shadow="0">
<title text="" alignement="left|top" angle="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</title>
<background texture="tex_bluegrad.png" stretch="1" />
</frame>
<!-- ================= Min/Max Outside Temp ================= -->
<lineplot width="500" height="180" shadow="0" position-x="10" position-y="49" margin-top="20" margin-right="15" margin-bottom="20" margin-left="30" >
<title text="Mois de $StartDate[%B]" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="0" />
</title>
<xaxis color="FF000000" grid="1" autoscale="1" min="0" max="0">
<title text="" alignement="vcenter|hcenter" angle="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="0" />
</title>
<labels labelinterval="4" angle="0" format="%d" side="left" hide="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="0" />
</labels>
<ticks majorticks="4" minorticks="3" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</xaxis>
<y1axis color="FF000000" grid="1" autoscale="1" min="0" max="0" titleside="left" titlemargin="35">
<labels labelinterval="1" angle="0" format=".1" side="left" hide="0">
<font color="FF000000" facename="Arial" size="12" weight="400" italic="0" />
</labels>
<ticks majorticks="0" minorticks="0" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>
<data>
<stats_month_max_outdoor_temperature axisbind="y1axis" legend="" color1="FFFF0000" antialiasing="1" hidelegend="1" thick="1"/>
<stats_month_min_outdoor_temperature axisbind="y1axis" legend="" color1="FF0000FF" antialiasing="1" hidelegend="1" thick="1"/>
</data>
<background color="FFCCCCCC" stretch="0" />
<graphbackground color="FFCCCCCC" texture="" />
<border cornerradius="0" color="FF000000" thick="1" />
</lineplot>
</stylesheet>

Il ne marche, bien sûr, que pour le mois courant.
Pierre
Avatar de l’utilisateur
MAGNUS
Membre
Messages : 992
Inscription : dim. mars 26, 2006 4:44 pm
Localisation : VIDAUBAN (83) FRANCE
Contact :

Re: "stats_month_xxxx" dans un "Lineplot"

Message par MAGNUS »

Bonjour
J'ai trituré dans tout les sens le stylesheet mais sans résultat.
Cela reste donc un mystère pour l'instant.
Désolé, pour ma part, j'utilise les barregraphes qui fonctionnent très bien.
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
Image
Pierre83
Membre
Messages : 41
Inscription : mar. avr. 20, 2010 2:32 pm

Re: "stats_month_xxxx" dans un "Lineplot"

Message par Pierre83 »

Merci Magnus888
Répondre