[Kst] Windows Command Line
nicolas.brisset at free.fr
Mon Mar 14 06:25:25 UTC 2016
Thinking of it... you could also set the correct ASCII parameters interactively and check the "Apply these settings as default" box (top left of the ASCII configure dialog).
Then you don't need to worry about the settings, until you need to read a file in a different format.
----- Mail original -----
> De: "Barth Netterfield" <netterfield at astro.utoronto.ca>
> À: kst at kde.org
> Envoyé: Mardi 8 Mars 2016 18:54:53
> Objet: Re: [Kst] Windows Command Line
> On March 8, 2016 05:05:02 PM Kornél Vári wrote:
> > Dear KST Members!
> > I am working on a windows 7 PC and writing a C program which calls
> > the KST
> > to plot curves from a .txt file with " ; " delimiter.
> > the source's first row contains the label of the columns.
> > I am using absolute path to call kst2.exe
> > with system call function it looks like this:
> > system("c:\tmp\kst\bin\kst2.exe -f 2 --png filename.png
> > filename.txt");
> > i have also tried
> > system("c:\tmp\kst\bin\kst2.exe -f 2 filename.txt -y 2 -y 3 --png
> > filename.png");
> > system("c:\tmp\kst\bin\kst2.exe filename.txt -f 2 -y 2 -y 3 --png
> > filename.png");
> > but i only have a blank png or the index plotted and the other
> > columns at 0.
> > I don't know what causes the problem, the only thing i can imagine,
> > is that
> > the program doesn't automatically recognize the " ; " as a
> > delimiter and
> > it's looking forward to a \t or " , " .
> It defaults to whitespace delimeted. Try
> c:\tmp\kst\bin\kst2.exe --asciiDelim ";" filename.txt -f 2 -y 2 -y 3
> --png filename.png
> ie, with proper escaping, I think:
> system("c:\tmp\kst\bin\kst2.exe --asciiDelim \";\" filename.txt -f 2
> -y 2 -y 3 --png filename.png")
> > I hope that one of you can help me to solve this problem
> > Looking forward your answer:
> > -Kornél
> Kst mailing list
> Kst at kde.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Kst