graph UV

Répondre
Avatar de l’utilisateur
david36
Membre
Messages : 31
Inscription : ven. sept. 11, 2009 9:50 am
Localisation : Belgique
Contact :

graph UV

Message par david36 »

Bonjour,

ceci n'est pas de ma création mais un graph existant et complet avec température, vent, pression ...etc qui m'a été envoyé par Vals.

n'étant pas le roi de la programmation, je tatouille, j'ai essayé d'alléger les graph, en souhaitant avoir uniquement les UV et radiations, mais je rencontre un problème d'échelle sur les radiations.

quelqu'un peut il m'aider à solutionner cela ?

je cherche aussi le code des couleurs, quelqu'un aurait cela en stock ?

merci.

Image

Code : Tout sélectionner

<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
	<image width="850" height="290" />
	<frame width="850" height="290" 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 color1="FFBBBBFF" color2="FFFFFFFF" gradient="1" gradient-direction="90" />
		<border cornerradius="0" color="FF555555" thick="1" />
	</frame>
<!-- ================= UV  ================= -->
     <lineplot width="900" height="250" shadow="0" position-x="0" position-y="40" margin-top="0" margin-right="140" margin-bottom="40" margin-left="110" >  		
	 
    <title text="" alignement="20" angle="0">
      <font color="FF000000" facename="Arial" size="12" weight="400" />
    </title>
    <border cornerradius="0" color="00000000" 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="12" weight="400" />
      </title>
      <labels labelinterval="1" angle="0" format="%H:%M\n%d/%m" side="2" hide="0">
        <font color="FF000000" facename="Arial" size="12" weight="400" />
      </labels>
      <ticks majorticks="7" minorticks="4" side="bottom" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
    </xaxis>
    
    <y1axis color="FFFF0000" grid="1" autoscale="1" min="0" max="0" titleside="top" titlemargin="40">
      <title text="Radiations solaires (W/m²)" alignement="vcenter|hcenter" angle="0">>
        <font color="FFFF0000" facename="Arial" size="13" weight="600" italic="1" />
      </title>
      <labels labelinterval="1" angle="0" format=".0" side="left" hide="0" hidelast="0">
        <font color="FFFF0000" facename="Arial" size="13" weight="600" italic="1" />
      </labels>
      <ticks autoticks="0" majorticks="5" minorticks="4" side="left" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
    </y1axis>
    

    <y2axis ydelta="70" side="8" color="FFFF9900" grid="0" autoscale="0" min="0" max="16" titleside="8" titlemargin="40">
      <title text="Index UV" alignement="20" angle="0">
        <font color="FFFF9900" facename="Arial" size="13" weight="600" />
      </title>
      <labels labelinterval="1" angle="0" format=".0" side="8" hide="0">
        <font color="FFFF9900" facename="Arial" size="13" weight="600" italic="1" />
      </labels>
      <ticks autoticks="0" majorticks="5" minorticks="4" side="8" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
    </y2axis>
         

    <data>
	<solar_radiation axisbind="y1axis" legend="Radiations solaires" color1="FFFF0000" color2="FFFF0000" antialiasing="1" filled="1" hide="0" />
        <uv_index axisbind="y1axis" legend="Radiations solaires" color1="FFFF0000" antialiasing="1" hidelegend="1" thick="1.2"/>
	<uv_index axisbind="y2axis" legend="Index UV" color1="FFFFFF00" color2="FFFFFF00" antialiasing="1" filled="1" hide="0" />
        <uv_index axisbind="y2axis" legend="Index UV" color1="FFFFFF00" antialiasing="1" hidelegend="1" thick="1.2"/>  
    </data>

    <legend orientation="0" margin="5" width="650"  position-x="110" position-y="10" hide="0" shadow="0">
      <font color="FF000000" facename="Arial" size="12" weight="400" italic="1" />
      <border cornerradius="0" color="55555555" thick="1" />
      <background color1="FFBBBBFF" color2="FFFFFFFF" gradient="1" gradient-direction="90" />
    </legend>
    <border cornerradius="0" color="55555555" thick="0" />
    <graphbackground color1="FFCCCCFF" color2="FFFFFFFF" gradient="1" gradient-direction="90" />

  </lineplot>

</stylesheet>
Davis VP II / WeatherLink + GW

Image

Météo La Louvière : CliC
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 UV

Message par jturlier »

Bonjour David,
une aide pour le code des couleurs : http://meteozoir.homeip.net/couleurs_de_base.htm
Tu peux à partir de ce document modifier légèrement les paramètres pour t'approcher le plus possible de ce que tu recherches.
N'oublie pas de rajouter devant les 3 octets du code l'octet de transparence. (les explications sont données sur le forum, mais tu peux aussi les trouver chez moi : http://meteozoir.homeip.net/doc_objets.htm )

Jean
Dernière modification par jturlier le mar. sept. 22, 2009 7:26 am, modifié 1 fois.
Avatar de l’utilisateur
david36
Membre
Messages : 31
Inscription : ven. sept. 11, 2009 9:50 am
Localisation : Belgique
Contact :

Re: graph UV

Message par david36 »

merci pour cette aide.

David. :)
Davis VP II / WeatherLink + GW

Image

Météo La Louvière : CliC
Avatar de l’utilisateur
Vals
Membre
Messages : 171
Inscription : dim. déc. 02, 2007 7:23 pm
Contact :

Re: graph UV

Message par Vals »

Bonjour David.
Je viens d'essayer chez moi.
Ton code n'est pas en cause.
Je pense plus à un pb sur ton plugin sondes ou autre :| , car ici les échelles et valeurs sont bonnes ??
@+
Image
La météo de Feyzin - La webcam
GraphWeather 2.0.321
Davis Vantage Pro2+ avec plugin wswin.dll
Répondre