[Kst] Modification of the label in command line mode

Barth Netterfield netterfield at astro.utoronto.ca
Wed Feb 20 20:44:25 UTC 2013


Hey Maxime,

If you have an ascii data file like this: (notice that the first row is the
field name, without spaces)

Temperature Pressure SomeThingElse
12 55 18
13 23 100
99 3 22

... and if you configure the ascii file appropriately (press the configure
button where you put in the file name in the GUI) then kst will use the
first row as the field name, and that name will show up in the axis labels
automatically.

You can make these changes default, so that plots made from the command
line will pick this up.



On Tue, Feb 19, 2013 at 10:32 AM, MaxLR <maxlr56 at hotmail.com> wrote:

> Hello,
>
> Thank you for your interest. In order to be more clear, I will explain a
> bit
> more in which context I'm using (or want to use) kst2.
>
> --Context--
> _I am doing an acquisition of measurement in real time.
> _I can have between 1 and 128 inputs.
> _I am generating a stream of data and I want to visualise them by kst2.
> _Moreover, the user will not have to select anything (except the number of
> inputs on the hardware side), he will just need to press a button
> "visualise".
> _The launch of kst2 is done in command line, by a call system generated by
> a
> script. In this way I can easily (I hope) automatised the plotting.
>
> --What I have done and where I am stuck--
> _I succeed to open an ASCII or a NetCFD file in command line.
> _I can generate an automatised command line for a defined number of input,
> such as: kst2 data.dat -y 1 -y 23 -y 59. The final syntax of the call will
> be defined when the choice of the label will be available =). Therefore, it
> could be something like: kst2 data.dat -y 1 -ylabel 'Input1' -y 23 -ylabel
> 'Input23' -y 59 -ylabel 'Input59'.
> _I did not figure yet, how to feed kst2 with a stream of data in command. I
> think I will use the Netcat command. If I cannot use a stream of data, I
> will use a temporary file.
>
> --Bonus question--
> _Before finishing, can I open with kst2 a "dirfile" type (in command or
> "window" mode)?
>
> Now, you know everything. So feel free to give any advice or solution to my
> problem. ; )
>
> Thank you.
>
> Best regards,
>
> Maxime
>
>
>
> --
> View this message in context:
> http://kde.6490.n7.nabble.com/Modification-of-the-label-in-command-line-mode-tp1520513p1520824.html
> Sent from the kst mailing list archive at Nabble.com.
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst
>



-- 
C. Barth Netterfield
University of Toronto
416-845-0946
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kst/attachments/20130221/932b6b7c/attachment.html>


More information about the Kst mailing list