From 77a34dbd7cc54caa09b04e167227d92091cda148 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Fri, 24 Oct 2014 10:25:06 +0200 Subject: Visual tweaking --- banapedia/__init__.py | 2 -- banapedia/api/__init__.py | 1 - banapedia/wapi/__init__.py | 1 - main.py | 9 +++++---- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/banapedia/__init__.py b/banapedia/__init__.py index 93efc48..8b13789 100644 --- a/banapedia/__init__.py +++ b/banapedia/__init__.py @@ -1,3 +1 @@ -__author__ = 'pacien' - diff --git a/banapedia/api/__init__.py b/banapedia/api/__init__.py index a0f842f..e69de29 100644 --- a/banapedia/api/__init__.py +++ b/banapedia/api/__init__.py @@ -1 +0,0 @@ -__author__ = 'pacien' diff --git a/banapedia/wapi/__init__.py b/banapedia/wapi/__init__.py index a0f842f..e69de29 100644 --- a/banapedia/wapi/__init__.py +++ b/banapedia/wapi/__init__.py @@ -1 +0,0 @@ -__author__ = 'pacien' diff --git a/main.py b/main.py index 548cb30..6fd59ce 100644 --- a/main.py +++ b/main.py @@ -4,9 +4,6 @@ from collections import Counter import pygal import numpy as np -__author__ = 'pacien' - - BAN_MAP_FILE = "output/ban-map.svg" BAN_DURATION_MAP_FILE = "output/ban-duration-map.svg" HIST_FILE = "output/histogram.svg" @@ -20,7 +17,11 @@ ban_dict_list = bandict.BanList(BAN_FILE) # ======== HISTOGRAM ======= # ban_durations = ban_dict_list.get_durations() -(ban_durations_bars, bins) = np.histogram(ban_durations, bins=[round(365/12*x) for x in range(1, 50+2)]) +(ban_durations_bars, bins) = np.histogram(ban_durations, + bins=[round(365/12*x) + for x in range(1, 50+2) + ] + ) print("[INFO]", "Generating histogram") bar_chart = pygal.Bar(legend_at_bottom=True) -- cgit v1.2.3