[Kst] Legend dataPrecision?
David Boettger
daveboettger at yahoo.com
Thu Mar 11 01:41:58 CET 2010
Thanks, that works well. I have never seen the [= (expression)] syntax before either, great to know!
Dave
--- On Tue, 3/9/10, Andrew Walker <arwalker at sumusltd.com> wrote:
From: Andrew Walker <arwalker at sumusltd.com>
Subject: Re: [Kst] Legend dataPrecision?
To: kst at kde.org
Date: Tuesday, March 9, 2010, 11:17 AM
Hi Dave,
Sadly I don't believe that this is supported as
saclar values in the legend all use the '%g' format for printing.
A workaround, of sorts, would be to specify an
equation for the value you want to print:
So instead of putting [Vector/Rms] in the legend
you could put something like:
[=([Vector/Rms]*1000.0 - ([Vector/Rms]*1000.0)%1.0)
/ 1000.0]
Horribly inelegant, but it does get the job
done!
Andrew
----- Original Message -----
From:
David
Boettger
To: kst at kde.org
Sent: Saturday, March 06, 2010 3:36
PM
Subject: [Kst] Legend
dataPrecision?
Hi,
I have made a legend that in addition to labeling each vector
displays the scalar RMS value for the vector, and this works great. My
question is if there is something similar to the dataPrecision setting
for labels that would apply to legends? I would like only 2-3 digits
displayed instead of all of them. I have not been able to find any
documentation for this.
Thanks,
Dave
_______________________________________________
Kst mailing
list
Kst at kde.org
https://mail.kde.org/mailman/listinfo/kst
-----Inline Attachment Follows-----
_______________________________________________
Kst mailing list
Kst at kde.org
https://mail.kde.org/mailman/listinfo/kst
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kst/attachments/20100310/f75efd1d/attachment.htm
More information about the Kst
mailing list