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
Graphs: y-values without unit?
Moderator: Mattk
Graphs: y-values without unit?
- Attachments
-
- temp_test.png (7.27 KiB) Viewed 4665 times
Re: Graphs: y-values without unit?
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?
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
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
-
- Platinum Boarder
- Posts: 873
- Joined: Fri Jan 25, 2008 6:27 pm
- Location: Isle of Skye, Scotland
Re: Graphs: y-values without unit?
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.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.
Re: Graphs: y-values without unit?
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 

-
- Platinum Boarder
- Posts: 873
- Joined: Fri Jan 25, 2008 6:27 pm
- Location: Isle of Skye, Scotland
Re: Graphs: y-values without unit?
Iv'e never tried this but...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
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:
Code: Select all
left_sensorcolor-0 13369344
So maybe if you directly edited the .mg you'd get just the colour you want?
Re: Graphs: y-values without unit?
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
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