[drraw-users] Custom GPRINTS
Christophe Kalt
kalt at taranis.org
Thu Jul 20 10:45:54 MDT 2006
Hi Jeff,
On Jul 18, Jeff Calvert wrote:
| Thanks for the update to drraw, I'm glad to see working VDEFs in
| the graphs. Is there any way to add custom GPRINTS to the legend? (I'm
| hoping to add a value for 95th percentile.)
I'm not sure whether i am missing the point of your question
because it seems obvious to me, so please bear with me.
| Example using rrdtool:
|
| /usr/bin/rrdtool graph primary.png \
[...]
| VDEF:C=A,95,PERCENT \
[...]
| GPRINT:C:"95th\:%8.2lf%s\n" \ <--------- GPRINT of a VDEF
So in the graph editor, you have a row in the "Data Source
Configuration" table which defines the VDEF. Since you want a
GPRINT of the VDEF, all you need to do is select GRPINT in the
drop down list found in the Type & Color column. As Label,
use "95th:%8.2lf%s". This will do it.
Now, i see that you also have this:
| LINE1:C#ff0000: \
This makes me think that you want to have the GPRINT in
addition to the LINE. The only way with 2.2a1 to do this
would be to define the same VDEF a second time. Less than
optimal. Seems like an oversight on my part. I'll have to
think about it, but i guess using the "Additional GPRINTs"
column to fix this would do.
More information about the drraw-users
mailing list