diff --git a/eodb/events/management/commands/activity.py b/eodb/events/management/commands/activity.py index cba685a..45af984 100644 --- a/eodb/events/management/commands/activity.py +++ b/eodb/events/management/commands/activity.py @@ -15,6 +15,7 @@ class Command(GraphCommand): parser.add_argument('--modulecount', type=int, help='count number of modules instead of commits ' '(value is minimum number of commits to be counted in)') + parser.add_argument('--barwidth', type=int, default=20) def handle(self, *args, **options): title = 'Git activity' @@ -55,7 +56,7 @@ class Command(GraphCommand): values = [events[x] for x in dates] bottoms = [total_events.get(x, 0) for x in dates] - plot = plt.bar(dates, values, width=20, bottom=bottoms) + plot = plt.bar(dates, values, width=options.get('barwidth'), bottom=bottoms) plots.append((legend, plot)) for key, value in events.items():