pyKst DataVector and scientific notation
Steve Maher
steve.f.maher at gmail.com
Fri Jan 25 14:24:59 GMT 2019
Hi All,
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.
Any ideas?
Thanks,
Steve
>
>
>
>
> On Wed, May 16, 2018 at 8:08 PM Steve Maher <Stephen.F.Maher at nasa.gov>
> wrote:
>
>> 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/20190125/2fb4ff5c/attachment.html>
More information about the Kst
mailing list