[Kst] [kst] [Bug 346243] plot created from wizard does not display first and last point of two columns of data containing header line
Roger Wehage
raw915 at gmail.com
Thu Apr 16 12:27:21 UTC 2015
https://bugs.kde.org/show_bug.cgi?id=346243
--- Comment #2 from Roger Wehage <raw915 at gmail.com> ---
There is a point of confusion on the index number assigned to the first data
point. In the Configure ASCII file window of Data Wizard it was required to
set Data starts at line: 2 and Read field names from line: 1. In the next
window the user is given the option of setting Start: under Data Range. The
Start: number defaults to 0, but it isn't clear whether numbering should start
from 0 or 1, because the previous window implied that lines were numbered
starting from 1. Thus setting Start: to 0 will include the first point.
However, Read to end is the only option for the the last point. Thus changing
Start: to 0 and selecting Read to end will give the correct starting results
but not the correct ending results. In this case the first point is included,
but the last point is not.
A workaround is to include a blank line at the end of the data file. In this
case the Sublime Text editor shows 13 lines in the simple.dat file instead of
the original 12. In essence, a hidden \n was added to the end of the last line.
The key, apparently, is that each valid line must be terminated with a \n (in
Linux and Unix) presumably. Not sure what Windows would require.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kst
mailing list