From 500e74a9ef9fa59a700a03eb59578be61b984ea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 15 Oct 2017 15:07:57 +0200 Subject: [PATCH] add option to not include a title --- eodb/events/management/commands/common.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eodb/events/management/commands/common.py b/eodb/events/management/commands/common.py index cb82945..77b6ff0 100644 --- a/eodb/events/management/commands/common.py +++ b/eodb/events/management/commands/common.py @@ -15,6 +15,7 @@ class GraphCommand(BaseCommand): help='use commit datetime instead of author datetime') parser.add_argument('--mailinglist', action='store_true', help='use mailing list emails instead of commits') + parser.add_argument('--notitle', action='store_true') parser.add_argument('--filename', metavar='FILENAME') def get_events(self, options): @@ -55,7 +56,8 @@ class GraphCommand(BaseCommand): return title def plot(self, options): - plt.title(self.get_title(options)) + if not options.get('notitle'): + plt.title(self.get_title(options)) if options.get('filename'): plt.savefig(options['filename']) else: