#1345 Graph rendered is incorrect when using time for x axis

5.0
closed-works-for-me
nobody
None
5
2014-09-01
2014-03-06
Anonymous
No

This is on the latest version of gnuplot (4.6.3-1) for cygwin (1.7.28-2) on Win7 64bit.

The two graphs should be identical, but they are not.
Here is the code to reproduce the bug:

clear
reset
set encoding utf8
set pointsize 0.8
set tics front nomirror
set grid front lc rgb 'black' lw 1

set multiplot layout 2,1
set title "Correct"
set nokey
set yrange [0.6:1]
set ytics 0,0.1,1
set xtics rotate by -90

plot \
'etc.dat' u 1:($3+$4+$5+$6+$7+$8):xticlabel(2)  w filledcurves x1 ,\
'etc.dat' u 1:($3+$4+$5+$6+$7)                  w filledcurves x1 ,\
'etc.dat' u 1:($3+$4+$5+$6)                     w filledcurves x1 ,\
'etc.dat' u 1:($3+$4+$5)                        w filledcurves x1 ,\
'etc.dat' u 1:($3+$4)                           w filledcurves x1 ,\
'etc.dat' u 1:($3)                              w filledcurves x1

set xdata time
set timefmt '"%d $H:$M"'
set format x "%d %H:%M"
set title "Broken"

plot \
'etc.dat' u 2:($3+$4+$5+$6+$7+$8) w filledcurves x1 notitle ,\
'etc.dat' u 2:($3+$4+$5+$6+$7)    w filledcurves x1 notitle ,\
'etc.dat' u 2:($3+$4+$5+$6)       w filledcurves x1 notitle ,\
'etc.dat' u 2:($3+$4+$5)          w filledcurves x1 notitle ,\
'etc.dat' u 2:($3+$4)             w filledcurves x1 notitle ,\
'etc.dat' u 2:($3)                w filledcurves x1 notitle

unset multiplot

And data from "etc.dat":

5 "03 00:00" 0.677274 0.241735 0.002429 0 0.078067 0.000496
6 "03 01:00" 0.673169 0.241057 0.002807 0 0.082627 0.000339
7 "03 02:00" 0.669076 0.237513 0.002585 0 0.090563 0.000263
8 "03 03:00" 0.673943 0.233963 0.002346 0 0.089580 0.000168
9 "03 04:00" 0.667138 0.232955 0.002271 0 0.097598 0.000037
10 "03 05:00" 0.667443 0.233736 0.001799 0 0.096952 0.000071
11 "03 06:00" 0.675290 0.234703 0.001541 0 0.088466 0
12 "03 07:00" 0.681320 0.231346 0.001204 0 0.086130 0
13 "03 08:00" 0.687925 0.224651 0.001115 0 0.086308 0
14 "03 09:00" 0.696602 0.216507 0.001283 0 0.085608 0
15 "03 10:00" 0.702277 0.212754 0.001748 0 0.083171 0.000049
16 "03 11:00" 0.695689 0.220509 0.001789 0 0.082012 0
17 "03 12:00" 0.695595 0.219524 0.002414 0 0.082449 0.000018
18 "03 13:00" 0.697089 0.217497 0.003101 0 0.082279 0.000033
19 "03 14:00" 0.704158 0.212070 0.004275 0 0.079429 0.000069
20 "03 15:00" 0.718833 0.206714 0.005425 0 0.068991 0.000037
21 "03 16:00" 0.727791 0.204108 0.006014 0 0.062009 0.000078
22 "03 17:00" 0.731944 0.203330 0.006714 0 0.057929 0.000083
23 "03 18:00" 0.737385 0.201134 0.006482 0 0.054863 0.000136
24 "03 19:00" 0.728492 0.215442 0.006706 0 0.049193 0.000167
25 "03 20:00" 0.722108 0.225050 0.005826 0 0.046668 0.000348
26 "03 21:00" 0.704314 0.241000 0.004905 0 0.049581 0.000200
27 "03 22:00" 0.693433 0.248664 0.004233 0 0.053505 0.000164
28 "03 23:00" 0.690372 0.248452 0.003046 0 0.058130 0
29 "04 00:00" 0.687107 0.245282 0.002735 0 0.064876 0

Discussion

  • Ethan Merritt
    Ethan Merritt
    2014-03-06

    I suspect this is because you have $ in your timefmt rather than %

     
  • Ethan Merritt
    Ethan Merritt
    2014-03-06

    • status: open --> open-works-for-me
     
  • Ethan Merritt
    Ethan Merritt
    2014-03-13

    • status: open-works-for-me --> closed-works-for-me