Change time format in x-axis

Discussion about generation of graphs and tables
Post Reply
lubuwetter
Posts: 16
Joined: Thu Jan 02, 2014 10:16 pm

Change time format in x-axis

Post by lubuwetter » Thu Jan 02, 2014 10:23 pm

Hi everybody,

how can I change the displayed time format (x-axis) in a non interactive chart?
I have a chart which displays 1 Year and I don't like the displayed time format

Code: Select all

12:00   22:00
Mi         Sa
1.Jan   1.Feb
I only want the months to be displayed.
Is that possible?

thx for your help

Michael

User avatar
admin
Site Admin
Posts: 332
Joined: Sun Feb 07, 2010 9:22 pm

Re: Change time format in x-axis

Post by admin » Sun Jan 05, 2014 5:14 pm

You might smuggle in some gnuplot commands. Did you had a look at the gnuplot manual to find out the command to change x-axis style?

lubuwetter
Posts: 16
Joined: Thu Jan 02, 2014 10:16 pm

Re: Change time format in x-axis

Post by lubuwetter » Tue Jan 07, 2014 1:00 pm

Maybe something like this

Code: Select all

set format x "%H:%M:%S"
But where to put this in the graph definitions in meteoplug?

regards
Michael

lubuwetter
Posts: 16
Joined: Thu Jan 02, 2014 10:16 pm

Re: Change time format in x-axis

Post by lubuwetter » Tue Jan 07, 2014 1:50 pm

Ok I did it.
The solution looks like this

Code: Select all

ggpformat=set_format_x_"%b";set_locale_"de__DE"
thanks for the help

Michael

Post Reply