|
From: Ethan A M. <EAM...@gm...> - 2015-01-11 05:32:15
|
On Friday, 09 January 2015 10:13:41 PM David Lang wrote:
> On Fri, 9 Jan 2015, Ethan A Merritt wrote:
>
> > On Friday, 09 January 2015 02:14:27 PM David Lang wrote:
> >> I ran into a case that worked with v4.x that doesn't work with v5, namely when
> >> plotting points from a file where the x column is a timestamp and the file had
> >> column headers, v4 seems to have ignored the header column (apparently deciding
> >> that the timestamp was invalid and so throwing out the entire line), while v5
> >> interprets the timestamp as 01-01-0000 and scaleing the entire plot to include
> >> this date.
> >
> >> I just was surprised when the plot that was working on my production
> >> system didn't work on my desktop (where I had installed 5.0). If this
> >> wasn't something that worked on the older versions, I would just shrug
> >> it off as "don't do that", but the fact that it broke a working config
> >> made me post about it.
> >
> > Can you provide the first few lines from a data file that was handled
> > differently by version 4 than by version 5?
>
> site_name|day|num_assets
> AMS|2014-12-09|596
>
> where column 2 is the x axis with timefmt "%Y-%m-%d"
>
> stripping out the first line made it work in v5
I can't reproduce this from the information given.
For me it works in both gnuplot 4.6.6 and gnuplot 5.0.0.
I used the following test script:
set datafile sep '|'
set xdata time
set timefmt '%Y-%m-%d'
plot 'timebug.dat' using 2:3:1 with labels
where 'timebug.dat' contained the two lines above.
Here is the v5 output with 'set term dumb'
602 +-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+
+ + + + + + + + + + + + +
| 'timebug.dat' using 2:3:1 |
600 +-+ +-+
| |
| |
598 +-+ +-+
| |
| |
596 +-+ AMS +-+
| |
| |
| |
594 +-+ +-+
| |
| |
592 +-+ +-+
| |
+ + + + + + + + + + + + +
590 +-+-+-+-+-++-+-+-+-+-+-+-+-+-+-+-+-++-+-+-+-+-+-+-++-+-+-+-+-+-+-+-+-+
06/01/14/01/1401/14/01/14/01/14/01/14/01/1401/15/01/1501/15/01/15/01/15/01/15
Ethan
|