Summary: | Add ability to easily perform math operations on scalars in labels etc. | ||
---|---|---|---|
Product: | [Applications] kst | Reporter: | Matthew Truch <matt> |
Component: | general | Assignee: | George Staikos <staikos> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | 1.x | ||
Target Milestone: | --- | ||
Platform: | Slackware | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Matthew Truch
2005-01-05 03:50:37 UTC
The grammar for this is a bit ad-hoc. How about something like this: "My label [eqn:1+[foo]/2] [anotherscalar] [astring]" This is easy enough to do and doesn't require guess work. > The grammar for this is a bit ad-hoc. How about something like this:
> "My label [eqn:1+[foo]/2] [anotherscalar] [astring]"
>
> This is easy enough to do and doesn't require guess work.
eqn isn't bad, but how about the = sign (as is used in spread sheets)?
[=1+[foo]/2]
On Wednesday 05 January 2005 15:52, Matthew Truch wrote: > > The grammar for this is a bit ad-hoc. How about something like this: > > "My label [eqn:1+[foo]/2] [anotherscalar] [astring]" > > > > This is easy enough to do and doesn't require guess work. > > eqn isn't bad, but how about the = sign (as is used in spread sheets)? > > [=1+[foo]/2] That's perfectly fine with me, and a better idea. Now the next question is how well does the parser handle nested brackets. :-) KstViewLabel now supports this and when KstLabel is reworked, it will also support it. I'll close when it's fully integrated. This can be done in view labels and once the new renderer is integrated into 2dplot, it can be done there too. As much as needed is done on this now. |