Page 1 of 1
Graphs: y-values without unit?
Posted: Sun Jan 15, 2012 10:06 pm
by che
Hello everyone,
i'm drawing first graphs with Meteohub. With the definition "set term png small" i could change the font style and the put the whole graph near the y-axis label. However, now the °-character disappeared and the html-code is written instead (see attached image).
Is there a possibility to write only the values on the y-axis, without the unit (°C)? The unit become also unnecessary with the labeling of the axis.
Thanks for any reply,
Christian
Re: Graphs: y-values without unit?
Posted: Mon Jan 16, 2012 5:47 pm
by admin
yes, you can handle that by using a gnuplot comand in the graph definition "format cmd" field. Please search for "gnuplot format" in the forum.
Re: Graphs: y-values without unit?
Posted: Fri Jan 20, 2012 10:29 pm
by che
Ok, thanks, problem solved.
Do you also know how i can change the colour of the graph curves with an own html-Code? The command "set terminal png xffffff" etc. does only work for the background and the axis, but not for the graph itself.
Thanks for another reply
Christian
Re: Graphs: y-values without unit?
Posted: Sun Jan 22, 2012 4:26 pm
by skyewright
che wrote:
Do you also know how i can change the colour of the graph curves with an own html-Code? The command "set terminal png xffffff" etc. does only work for the background and the axis, but not for the graph itself.
Unless I'm misunderstanding what you want to do you don't need the Format Cmd at all for that - simply use the button to the right of the existing colour sample for the relevant sensor on the Meteohub "Definition of Weather Graphs" page. That opens up a window on which you can select alternative colours.
Re: Graphs: y-values without unit?
Posted: Sun Jan 22, 2012 9:04 pm
by che
Hello and thanks for your reply; I noticed that window with the alternative colours, but the colour i want for my graph isn't listed there

Re: Graphs: y-values without unit?
Posted: Mon Jan 23, 2012 3:17 pm
by skyewright
che wrote:Hello and thanks for your reply; I noticed that window with the alternative colours, but the colour i want for my graph isn't listed there

Iv'e never tried this but...
If you look in the graphs folder on your Meteohub you'll find the graph definitions as files with the extension
.mg. If you open up a
.mg file in a text editor you'll see the definition, including lines like:
The number seems to be a decimal version of the colour number (13369344 decimal is CC0000 hexadecimal).
So maybe if you directly edited the
.mg you'd get just the colour you want?
Re: Graphs: y-values without unit?
Posted: Sun Feb 05, 2012 1:54 am
by che
Hi and sorry for the late answer,
good idea, but it seems to take no effect. The prefered colour cannot be drawn, you can rebuild only the predefined colours.
Ok, there are a lot of other colours ...
Thanks for your help,
Christian