summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2297ed3)
raw | patch | inline | side by side (parent: 2297ed3)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 14 Mar 2011 08:22:46 +0000 (08:22 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 14 Mar 2011 08:22:46 +0000 (08:22 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.4/program@2179 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_graph.c | patch | blob | history |
diff --git a/src/rrd_graph.c b/src/rrd_graph.c
index 4282334264a33c39f2cd0b7e061d366d6a9fd709..341100c492d8440c97cc0b6601cd080b207045e2 100644 (file)
--- a/src/rrd_graph.c
+++ b/src/rrd_graph.c
if (im->second_axis_legend[0] != '\0') {
Xvertical2 = im->text_prop[TEXT_PROP_UNIT].size * 2;
}
+ else{
+ Xvertical2 = Xspacing;
+ }
if (im->title[0] != '\0') {
/* The title is placed "inbetween" two text lines so it
}
else{
// we have no title; get a little clearing from the top
- Ytitle = 1.5 * Yspacing;
+ Ytitle = Yspacing;
}
if (elements) {
/* reserve space for padding below the graph */
if (im->extra_flags & NOLEGEND) {
- Ymain -= Yspacing;
+ Ymain -= 0.5*Yspacing;
}
if (im->watermark[0] != '\0') {
}
/* reserve space for padding below the graph */
if (im->extra_flags & NOLEGEND) {
- im->yimg += Yspacing;
+ im->yimg += 0.5*Yspacing;
}
if (im->watermark[0] != '\0') {