From 950c045e09d52d8b9c1ae6cf4299f2d36fe90f70 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 19 Dec 2016 12:50:50 +0100 Subject: [PATCH] update figure labels --- lib/plot.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/plot.py b/lib/plot.py index 25718279..63e6e6d9 100644 --- a/lib/plot.py +++ b/lib/plot.py @@ -36,15 +36,12 @@ def plot_history(wallet, history): f, axarr = plt.subplots(2, sharex=True) plt.subplots_adjust(bottom=0.2) plt.xticks( rotation=25 ) - ax=plt.gca() - + ax = plt.gca() plt.ylabel('BTC') - plt.xlabel('Dates') + plt.xlabel('Month') xfmt = md.DateFormatter('%Y-%m-%d') ax.xaxis.set_major_formatter(xfmt) - - axarr[0].set_title('History Transactions') - + axarr[0].set_title('Monthly Volume') xfmt = md.DateFormatter('%Y-%m') ax.xaxis.set_major_formatter(xfmt) width = 20 @@ -54,5 +51,4 @@ def plot_history(wallet, history): dates, values = zip(*sorted(hist_out.items())) r2 = axarr[1].bar(dates, values, width, color='r', label='outgoing') axarr[1].legend(loc='upper left') - # plt.annotate('unknown transaction = %d \n pending transactions = %d' %(unknown_trans,pending_trans),xy=(0.7,0.05),xycoords='axes fraction',size=12) return plt