Discussion:
pyKst and locking label to data position
Steve Maher
2018-05-17 00:08:41 UTC
Permalink
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...

Loading...