summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-05-15 21:52:07 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2013-06-02 22:29:31 +0200
commit2b7d6965be9a06dadfc971d0d37fc9b2ef0cad7a (patch)
treedd18ddf6fdfe5c68fd087047e5d60870d1277c46 /src
parentd9acfb71dbfb6e916b9752593158698b8021b28c (diff)
analyze: fix font size on plot
The font-size was missing a unit so they were ignored. This patch sets the unit to 'px' and adjusts the sizes a bit as the text got very small.
Diffstat (limited to 'src')
-rw-r--r--src/analyze/systemd-analyze.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/analyze/systemd-analyze.c b/src/analyze/systemd-analyze.c
index 6d97256c73..fe1abdc6bd 100644
--- a/src/analyze/systemd-analyze.c
+++ b/src/analyze/systemd-analyze.c
@@ -512,10 +512,10 @@ static int analyze_plot(DBusConnection *bus) {
"// line.sec1 { }\n"
" line.sec5 { stroke-width: 2; }\n"
" line.sec01 { stroke: rgb(224,224,224); stroke-width: 1; }\n"
- " text { font-family: Verdana, Helvetica; font-size: 10; }\n"
- " text.left { font-family: Verdana, Helvetica; font-size: 10; text-anchor: start; }\n"
- " text.right { font-family: Verdana, Helvetica; font-size: 10; text-anchor: end; }\n"
- " text.sec { font-size: 8; }\n"
+ " text { font-family: Verdana, Helvetica; font-size: 14px; }\n"
+ " text.left { font-family: Verdana, Helvetica; font-size: 14px; text-anchor: start; }\n"
+ " text.right { font-family: Verdana, Helvetica; font-size: 14px; text-anchor: end; }\n"
+ " text.sec { font-size: 10px; }\n"
" ]]>\n </style>\n</defs>\n\n");
svg("<text x=\"20\" y=\"50\">%s</text>", pretty_times);