This patch adds a Python like string formating
capability to gnuplot. This is escpecially
usefull to include fitted parameters in plot
set title 'Average %.2f' % 123.4567
which is basically useless as you could write
set title 'Average 123.46'
This one is more usefull:
fit a*x+b 'data' via a,b
plot 'data', a*x+b tit '%.2f*x + %%.1f' % (a,b)
The two percent signs %% are a result of the
(not so good) implementation of the formating
operator: The n'th parameter to format needs
2**n percent signes. This is strange but allows
to use %t %l %s and %T %L %S %c in correct
I find this feature so usefull, that I can easily
live with the complicated syntax, strange clipping,
set label (and others) limit the resulting
string length to the original one; appending
enough spaces works but justification gets easily
No documentation jet.
Maybe not all strings can be formated.
Including a percent sign in the final string is