<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Thanks, that works well. I have never seen the [= (expression)] syntax before either, great to know!<div><br></div><div>Dave<br><br>--- On <b>Tue, 3/9/10, Andrew Walker <i><arwalker@sumusltd.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Andrew Walker <arwalker@sumusltd.com><br>Subject: Re: [Kst] Legend dataPrecision?<br>To: kst@kde.org<br>Date: Tuesday, March 9, 2010, 11:17 AM<br><br><div id="yiv1574227827">
<style></style>
<div><font size="2" face="Arial">Hi Dave,</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">Sadly I don't believe that this is supported as
saclar values in the legend all use the '%g' format for printing.</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">A workaround, of sorts, would be to specify an
equation for the value you want to print:</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">So instead of putting [Vector/Rms] in the legend
you could put something like:</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">[=([Vector/Rms]*1000.0 - ([Vector/Rms]*1000.0)%1.0)
/ 1000.0]</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">Horribly inelegant, but it does get the job
done!</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">Andrew</font></div>
<blockquote style="BORDER-LEFT:#000000 2px solid;PADDING-LEFT:5px;PADDING-RIGHT:0px;MARGIN-LEFT:5px;MARGIN-RIGHT:0px;">
<div style="FONT:10pt arial;">----- Original Message ----- </div>
<div style="FONT:10pt arial;BACKGROUND:#e4e4e4;"><b>From:</b>
<a rel="nofollow" title="daveboettger@yahoo.com" ymailto="mailto:daveboettger@yahoo.com" target="_blank" href="/mc/compose?to=daveboettger@yahoo.com">David
Boettger</a> </div>
<div style="FONT:10pt arial;"><b>To:</b> <a rel="nofollow" title="kst@kde.org" ymailto="mailto:kst@kde.org" target="_blank" href="/mc/compose?to=kst@kde.org">kst@kde.org</a> </div>
<div style="FONT:10pt arial;"><b>Sent:</b> Saturday, March 06, 2010 3:36
PM</div>
<div style="FONT:10pt arial;"><b>Subject:</b> [Kst] Legend
dataPrecision?</div>
<div><br></div>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top">Hi,
<div><br></div>
<div>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.</div>
<div><br></div>
<div>Thanks,</div>
<div>Dave</div></td></tr></tbody></table><br>
<p>
</p><hr>
<p></p>_______________________________________________<br>Kst mailing
list<br>Kst@kde.org<br>https://mail.kde.org/mailman/listinfo/kst<br><br></blockquote>
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>Kst mailing list<br><a ymailto="mailto:Kst@kde.org" href="/mc/compose?to=Kst@kde.org">Kst@kde.org</a><br><a href="https://mail.kde.org/mailman/listinfo/kst" target="_blank">https://mail.kde.org/mailman/listinfo/kst</a><br></div></blockquote></div></td></tr></table><br>