Graphs: y-values without unit?

Discussion of the Meteohub software package

Moderator: Mattk

Post Reply
che
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Sun Jan 15, 2012 9:49 pm

Graphs: y-values without unit?

Post 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
Attachments
temp_test.png
temp_test.png (7.27 KiB) Viewed 4663 times
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7879
Joined: Mon Oct 01, 2007 10:51 pm

Re: Graphs: y-values without unit?

Post 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.
che
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Sun Jan 15, 2012 9:49 pm

Re: Graphs: y-values without unit?

Post 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
skyewright
Platinum Boarder
Platinum Boarder
Posts: 873
Joined: Fri Jan 25, 2008 6:27 pm
Location: Isle of Skye, Scotland

Re: Graphs: y-values without unit?

Post 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.
che
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Sun Jan 15, 2012 9:49 pm

Re: Graphs: y-values without unit?

Post 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 :-)
skyewright
Platinum Boarder
Platinum Boarder
Posts: 873
Joined: Fri Jan 25, 2008 6:27 pm
Location: Isle of Skye, Scotland

Re: Graphs: y-values without unit?

Post 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:

Code: Select all

left_sensorcolor-0 13369344
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?
che
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Sun Jan 15, 2012 9:49 pm

Re: Graphs: y-values without unit?

Post 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
Post Reply