%W is a week number within a year. Gnuplot cannot recognize it in the timefmt. I have a lot of data sets with a time column containing a year and a week number.
set xdata time # input for X axis contains time
set timefmt "%Y-%W" # input time format <<< %W NOT RECOGNIZED BY GNUPLOT
set format x "%Y-%W" # output format on axis X
plot '-' using 1:2 title "rawhide" with filledcurve x1
Gnuplot 4.4.2 output:
-:1: line 1: warning: Bad time format in string
-:2: line 2: warning: Bad time format in string
-:3: line 3: warning: Bad time format in string
-:4: line 4: warning: Bad time format in string
Please consider the proposed patch which fixes this problem by adding %W to the default gstrptime implementation.
Run tested on my data sets.
Log in to post a comment.