From 3e33179a180fdbd3b8d710b3a1808f63772ab5d1 Mon Sep 17 00:00:00 2001 From: Luis Pedro Coelho Date: Tue, 28 Feb 2012 18:11:51 +0000 Subject: [PATCH] ENH Label your axes --- gitwc/gitwc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gitwc/gitwc.py b/gitwc/gitwc.py index 887bb72..d6c2ce4 100644 --- a/gitwc/gitwc.py +++ b/gitwc/gitwc.py @@ -44,5 +44,9 @@ def recursive_stats(commit, pattern, gatherer=Wc): chars = [w.chars for _,w in allstats] words = [w.words for _,w in allstats] plt.plot(map(datetime.fromtimestamp, times), words) + plt.rc('text', usetex=True) + plt.rc('font', family='serif') + plt.ylabel(r'Nr. words') + plt.xlabel(r'time') plt.savefig("words.pdf") plt.show()