[Kst] [Bug 120827] New: Command line option -f fails for some ascii files

Ted Kisner tskisner.public at gmail.com
Thu Jan 26 18:54:56 CET 2006

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
           Summary: Command line option -f fails for some ascii files
           Product: kst
           Version: unspecified
          Platform: unspecified
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kst kde org
        ReportedBy: tskisner.public gmail com

Version:           1.2.0_devel (using KDE 3.5.0, Kubuntu Package 4:3.5.0-0ubuntu0breezy1 breezy)
Compiler:          Target: x86_64-linux-gnu
OS:                Linux (x86_64) release 2.6.12-10-amd64-k8

When specifying the "-f" command line option, the ascii datasource scans for the number of columns *in the first row*, rather than starting at the specified frame.  For example, if I have a text file like this:

0.000000e+00 6.785501e+05
1.831055e-03 5.238199e+05
3.662109e-03 4.617861e+05
5.493164e-03 4.578143e+05
7.324219e-03 4.263500e+05

and would like to plot the second column, I should be able to specify:

kst -f 1 -x 1 -y 2 <filename>

However, the number of available fields is determined by the first frame, not the frame specified by the "-f" option.  This is a regression (it used to work fine).  I think this feature is pretty important.

I'll try to dig in to this over the weekend, but maybe someone knows exactly where the problem is, due to recent changes in main.cpp, the datasource, etc?

More information about the Kst mailing list