From: Michael Tremer Date: Sun, 13 Dec 2015 00:06:12 +0000 (+0100) Subject: Make the graph title optional X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca8a6cfa8410a3ea36d373124afb3b6cf731382f;p=collecty.git Make the graph title optional Signed-off-by: Michael Tremer --- diff --git a/src/collecty/plugins/base.py b/src/collecty/plugins/base.py index a4d2d72..7a61316 100644 --- a/src/collecty/plugins/base.py +++ b/src/collecty/plugins/base.py @@ -516,7 +516,7 @@ class GraphTemplate(object): return self.plugin.log def _make_command_line(self, interval, format=DEFAULT_IMAGE_FORMAT, - width=None, height=None): + width=None, height=None, with_title=True): args = [] args += GRAPH_DEFAULT_ARGUMENTS @@ -530,7 +530,7 @@ class GraphTemplate(object): args += self.rrd_graph_args # Graph title - if self.graph_title: + if with_title and self.graph_title: args += ["--title", self.graph_title] # Vertical label