<div dir="ltr"><div dir="ltr"><span style="color:rgb(80,0,80);font-family:Roboto,"Helvetica Neue",Helvetica,Arial,sans-serif">Hi All,</span><div style="font-family:Roboto,"Helvetica Neue",Helvetica,Arial,sans-serif;color:rgb(80,0,80)"><br></div><div style="font-family:Roboto,"Helvetica Neue",Helvetica,Arial,sans-serif;color:rgb(80,0,80)">I've returned to pyKst and adding a locked-to-data label and have been making progress.  However, one obstacle is on most of our plots use SecondsSince1970 as the X axis and when I query (via pyKst) values for that DataVector, they are returned (as strings) using scientific notation.  In this format,  I will, for example receive "1.54843e+09" when the actual value is 1548425946.  This is an "error" of ~4000 seconds, which is a problem.  I don't see any relevant options in pyKst.  In Kst, "View Vector Values" shows the full precision.</div><div style="font-family:Roboto,"Helvetica Neue",Helvetica,Arial,sans-serif;color:rgb(80,0,80)"><br></div><div style="font-family:Roboto,"Helvetica Neue",Helvetica,Arial,sans-serif;color:rgb(80,0,80)">Any ideas?</div><div style="font-family:Roboto,"Helvetica Neue",Helvetica,Arial,sans-serif;color:rgb(80,0,80)"><br></div><div style="font-family:Roboto,"Helvetica Neue",Helvetica,Arial,sans-serif;color:rgb(80,0,80)">Thanks,</div><div style="font-family:Roboto,"Helvetica Neue",Helvetica,Arial,sans-serif;color:rgb(80,0,80)">Steve</div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><br><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail-m_1632352418856214713gmail_attr">On Wed, May 16, 2018 at 8:08 PM Steve Maher <<a href="mailto:Stephen.F.Maher@nasa.gov" target="_blank">Stephen.F.Maher@nasa.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>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).</div><div><br></div><div>I was inspired to do this partly because I want to programmatically attach event notification labels to scrolling plots.</div><div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>Thanks!</div><div>Steve</div><div><br></div><div>p.s. Are there basic protections in place to allow simultaneous scripting and user operations?  I understand there are probably difficult corner cases...</div></div>
</blockquote></div></div>
</blockquote></div></div>