[Kst] plot all columns from command line and some more newbiequestions

Fabian Braennstroem f.braennstroem at gmx.de
Thu Apr 1 19:51:18 CEST 2010


Hi Andrew,

thanks for the quick reply!

On 04/01/2010 07:27 PM, Andrew Walker wrote:
> Hi Fabian,
>
> There are some examples in the documentation:
>
> http://kst.kde.org/handbook/index.html
>
> and scroll to the very bottom of the page.
> There are some dozen or so examples of using scripting.
>
> Let us know if you have any specific questions or the documentation
> would benefit from a particular example.
Thanks, I missed them...


>
> For the datasource and scripting, you can do something like the following:
>
> ds = new DataSource("some/file.txt") // the name of your data file
> ds.setConfiguration("customdelimiter", " )(")
> v = new DataVector(ds, "1") // the column number of interest
O.k., nice.

>
> Alternatively, the following should also work:
>
> Open the Data Wizard
> Select your file
> Click Configure...
> In the "Data Format" group click on "Custom delimiter"
> Enter " )(" [without the quotes] in the corresponding edit field
> Shutdown kst
> Load your file from the command line (the settings are remembered across
> sessions)
Beautiful :-) So I assume, there an option to plot all column at once as 
well!?

>
> Hope that helps,
Yes, a lot :-)
Thanks!
Fabian


More information about the Kst mailing list