[Kst] how to show last 100 points of a file that is growing with kst2?

Barth Netterfield netterfield at astro.utoronto.ca
Fri Sep 23 23:41:59 UTC 2011

I plot the last N samples from a growing file all the time.  In fact,
this is our primary use case for kst2.

The way I handle this is to have the vectors contain the last 100
samples only, and have the plot X axis be in auto-scale mode.

To do this, when you create the vectors (eg, in the data wizard),  select
     [x] Count From End
and set number of frames to 100.
Then the vector will always contain the last 100 frames in the file,
and will scroll along as the file grows.

Does this make sense?

On Fri, Sep 23, 2011 at 7:01 PM, Timo Juhani Lindfors
<timo.lindfors at iki.fi> wrote:
> Hi,
> in kst1 I could set
> minExp: "[INDEX/Max] - 100"
> maxExp: "[INDEX/Max]"
> to get a plot that always shows the last 100 data points. This is very
> useful for watching how data is being collected to a file that
> constantly grows. I sent patches to document this in kst1 about a year
> ago in
> https://bugs.kde.org/show_bug.cgi?id=241400
> How can I do this in kst2? If I choose "X Zoom Mode"->Fixed and enter
> "[INDEX/Max]" to the "to" field it seems to evaluate to some quite small
> value.
> -Timo
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst

C. Barth Netterfield
University of Toronto

More information about the Kst mailing list