electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 950c045e09d52d8b9c1ae6cf4299f2d36fe90f70
parent 0a8f9d49eac1d538f5b7f374f2b7740956e9c40b
Author: ThomasV <thomasv@electrum.org>
Date:   Mon, 19 Dec 2016 12:50:50 +0100

update figure labels

Diffstat:
Mlib/plot.py | 10+++-------
1 file changed, 3 insertions(+), 7 deletions(-)

diff --git 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