Forum GraphWeather

Forum d'aide GraphWeather
Nous sommes actuellement le Jeu Mai 16, 2024 9:04 am

Le fuseau horaire est UTC+1 heure




Publier un nouveau sujet Répondre au sujet  [ 4 message(s) ] 
Auteur Message
 Sujet du message:
MessagePublié: Lun Août 28, 2006 7:12 pm 
Hors-ligne
Membre

Inscription : Jeu Avr 27, 2006 7:01 pm
Message(s) : 192
Localisation : LAUSANNE
J'ai essayé, vainement, de colorier la partie supérieure de mon graphique ci-dessous mais je n'ai pas trouvé la commande adéquate. Quelqu'un saurait-il comment faire ?

Code:
<?xml version="1.0" encoding="iso-8859-1" ?>
<stylesheet>
<image width="580" height="200" />
<!-- ================= First Lineplot ================= -->
<lineplot width="580" height="200" shadow="5" position-x="0" position-y="0" margin-top="15" margin-right="35" margin-bottom="45" margin-left="65">

<border cornerradius="40" color="FF909090" thick="1" />
<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" formatstring="0" side="2" hide="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</labels>
<ticks majorticks="10" minorticks="4" side="2" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</xaxis>
<y1axis color="FF000000" grid="1" autoscale="1" min="0" max="0" titleside="2" titlemargin="40">
<title text="Hauteur estimée des nuages" alignement="20" angle="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</title>
<labels labelinterval="1" angle="0" formatstring="0" side="2" hide="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0" />
</labels>
<ticks majorticks="5" minorticks="4" side="2" hidefirst="0" hidelast="0" hideminorticks="0" hide="0" />
</y1axis>

<background color="FFFFFFFF" texture="tex_bluegrad.png" stretch="1" />
<graphbackground color="FFFFFFFF" />
<data>
<cloud_base axisbind="y1axis" color1="40FF0000" color2="200000FF" antialiasing="1" filled="1" hide="0" thick="0" hidelegend="1"/>
</data>
</lineplot>

</stylesheet>


Un tout grand merci pour votre aide.

_________________
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


Haut
 Profil  
Répondre en citant  
 Sujet du message:
MessagePublié: Lun Août 28, 2006 8:03 pm 
Hors-ligne
Membre
Avatar de l’utilisateur

Inscription : Mar Août 22, 2006 8:38 am
Message(s) : 3145
Localisation : 34410 Sérignan - Languedoc
Didier,
la transparence c'est sur les 2 premiers caractères à FF pas sur les 2 derniers

Ce qui suit est ce que j'ai compris que tu voulais.

Confirme STP.

Il y a une ano, à toi d'essayer de la corriger !

Bonne réception

Jean


<?xml version="1.0" encoding="iso-8859-1"?>
<stylesheet>
<image width="580" height="200"/><!-- ================= First Lineplot ================= --><lineplot width="580" height="200" shadow="5" position-x="0" position-y="0" margin-top="15" margin-right="35" margin-bottom="45" margin-left="65">
<border cornerradius="40" color="FF909090" thick="1"/>
<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" formatstring="0" side="2" hide="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0"/>
</labels>
<ticks majorticks="10" minorticks="4" side="2" hidefirst="0" hidelast="0" hideminorticks="0" hide="0"/>
</xaxis>
<y1axis color="FF000000" grid="1" autoscale="1" min="0" max="0" titleside="2" titlemargin="40">
<title text="Hauteur estimée des nuages" alignement="20" angle="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0"/>
</title>
<labels labelinterval="1" angle="0" formatstring="0" side="2" hide="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0"/>
</labels>
<ticks majorticks="5" minorticks="4" side="2" hidefirst="0" hidelast="0" hideminorticks="0" hide="0"/>
</y1axis>
<data>
<cloud_base axisbind="y1axis" color1="FFFF0000" color2="FFFF00FF" antialiasing="1" filled="1" hide="0" thick="0" hidelegend="1"/>
</data>
<background color="00220000" stretch="1"/>
<graphbackground color="FF00FFFF"/>
</lineplot>
</stylesheet>

_________________
Jean

Station : VP2 Pro Console Vue + anémomètre à Ultra-sons
Logiciels : Cumulus 1.9.4 + Cumulus2SQL
Serveur local : Apache + MySQL +PHP
PC : W10
Support Audio : FR

http://meteoserignan.ddns.net
Image
"Aide-toi d'abord toi-même et les autres t'aideront ... peut-être"


Haut
 Profil  
Répondre en citant  
 Sujet du message:
MessagePublié: Lun Août 28, 2006 9:39 pm 
Hors-ligne
Membre

Inscription : Jeu Avr 27, 2006 7:01 pm
Message(s) : 192
Localisation : LAUSANNE
Ce que je désire est ceci :

<?xml version="1.0" encoding="iso-8859-1"?>
<stylesheet>
<image width="580" height="200"/><!-- ================= First Lineplot ================= --><lineplot width="580" height="200" shadow="5" position-x="0" position-y="0" margin-top="15" margin-right="35" margin-bottom="45" margin-left="65">
<border cornerradius="40" color="FF909090" thick="1"/>
<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" formatstring="0" side="2" hide="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0"/>
</labels>
<ticks majorticks="10" minorticks="4" side="2" hidefirst="0" hidelast="0" hideminorticks="0" hide="0"/>
</xaxis>
<y1axis color="FF000000" grid="1" autoscale="1" min="0" max="0" titleside="2" titlemargin="40">
<title text="Hauteur estimée des nuages" alignement="20" angle="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0"/>
</title>
<labels labelinterval="1" angle="0" formatstring="0" side="2" hide="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0"/>
</labels>
<ticks majorticks="5" minorticks="4" side="2" hidefirst="0" hidelast="0" hideminorticks="0" hide="0"/>
</y1axis>
<data>
<cloud_base axisbind="y1axis" color1="FFFFFFFF" color2="FFFFFFFF" antialiasing="1" filled="1" hide="0" thick="0" hidelegend="1"/>
</data>
<background color="FFFFFFFF" texture="tex_bluegrad.png" stretch="1"/>
<graphbackground color="FF00FFFF"/>
</lineplot>
</stylesheet>

Mais la partie blanche dessous avec la grille en horizontale. J'ai tout essayé mais en vain...... C'est pas facile ce xml..

Et je n'ai pas trouvé la solution pour donner un dégradé à la partie colorée du haut.

_________________
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


Haut
 Profil  
Répondre en citant  
 Sujet du message:
MessagePublié: Lun Août 28, 2006 10:10 pm 
Hors-ligne
Site Admin
Avatar de l’utilisateur

Inscription : Lun Mars 20, 2006 11:16 am
Message(s) : 3356
Localisation : Montréal
On peut donner un dégradé dans la partie du haut seulement en indiquant une texture qui a un dégradé (et non pas simplement en indiquant deux couleurs).
Il faut mettre :

<graphbackground texture="tex_greengrad.png" stretch="1"/>

Là tu auras la texture verte dégradée qui sera incrustée derrière le graph. Ca aurait pu aussi être une photo :)

Par contre pour les lignes horizontales qui n'apparaissent pas ca doit etre un bug que je corrige de ce pas.
Un moyen de contourner ce bug c'est d'ajouter un peu de transparence sur cloud_base (on les verras en dessous).

Au final ca donne ca, j'ai ajouté un ligne cloud_base pour bien délimité le blanc et le blanc du gradient vert.
Tu peux te faire tes propres gradient en .png ou .jpg, ou mettre une photo d'un paysage :D

<?xml version="1.0" encoding="iso-8859-1"?>
<stylesheet>
<image width="585" height="205"/>
<!-- ================= First Lineplot ================= -->
<lineplot width="580" height="200" shadow="5" position-x="0" position-y="0" margin-top="15" margin-right="35" margin-bottom="45" margin-left="65">
<border cornerradius="40" color="FF909090" thick="1"/>
<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" formatstring="0" side="2" hide="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0"/>
</labels>
<ticks majorticks="10" minorticks="4" side="2" hidefirst="0" hidelast="0" hideminorticks="0" hide="0"/>
</xaxis>
<y1axis color="FF000000" grid="1" autoscale="1" min="0" max="0" titleside="2" titlemargin="40">
<title text="Hauteur estimée des nuages" alignement="20" angle="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0"/>
</title>
<labels labelinterval="1" angle="0" formatstring="0" side="2" hide="0">
<font color="FF000000" facename="Arial" size="14" weight="400" italic="0"/>
</labels>
<ticks majorticks="5" minorticks="4" side="2" hidefirst="0" hidelast="0" hideminorticks="0" hide="0"/>
</y1axis>
<data>
<cloud_base axisbind="y1axis" color1="30000000" antialiasing="1" filled="0" hide="0" thick="1.2" hidelegend="1"/>
<cloud_base axisbind="y1axis" color1="80FFFFFF" color2="80FFFFFF" antialiasing="1" filled="1" hide="0" thick="0" hidelegend="1"/>
</data>
<background color="FFFFFFFF" texture="tex_bluegrad.png" stretch="1"/>
<graphbackground texture="tex_greengrad.png" stretch="1"/>
</lineplot>
</stylesheet>


Haut
 Profil  
Répondre en citant  
Afficher les messages publiés depuis :  Trier par  
Publier un nouveau sujet Répondre au sujet  [ 4 message(s) ] 

Le fuseau horaire est UTC+1 heure


Qui est en ligne ?

Utilisateur(s) parcourant ce forum : Aucun utilisateur inscrit et 69 invité(s)


Vous ne pouvez pas publier de nouveaux sujets dans ce forum
Vous ne pouvez pas répondre aux sujets dans ce forum
Vous ne pouvez pas éditer vos messages dans ce forum
Vous ne pouvez pas supprimer vos messages dans ce forum
Vous ne pouvez pas insérer de pièces jointes dans ce forum

Recherche de:
Aller vers :  
cron
POWERED_BY
Traduction et support en françaisHébergement de site