pyKst and locking label to data position

Steve Maher Stephen.F.Maher at nasa.gov
Thu May 17 00:08:41 UTC 2018


Hi all,

I finally got around to getting kst scripting from Java working - via
Jython and direct communication with named pipes (there's no Qt on Jython).

I was inspired to do this partly because I want to programmatically attach
event notification labels to scrolling plots.

I can add a label and lock it to data, but the API only supports x,y
positions of [0-1,0-1] normalized coordinates.  I'd like to use (or convert
from) actual data X,Y coordinates for the position (even if the position is
off-screen) as my program doesn't know the current ranges on the plot.

Is there a scripting-exposed way to do this?  Having something like
Plot.getCurrentXRange/getCurrentYRange would be a start, but I guess the
0-1 ranges still disallow off-screen placement.

Thanks!
Steve

p.s. Are there basic protections in place to allow simultaneous scripting
and user operations?  I understand there are probably difficult corner
cases...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kst/attachments/20180516/5e265a79/attachment.html>


More information about the Kst mailing list