From 9a3b2702bbcbd67eab592b043b7dcd50b48afe3b Mon Sep 17 00:00:00 2001 From: bicker Date: Wed, 14 Jun 2017 14:34:17 +0200 Subject: first commit --- backup/old/xyz.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 backup/old/xyz.py (limited to 'backup/old/xyz.py') diff --git a/backup/old/xyz.py b/backup/old/xyz.py new file mode 100644 index 0000000..f83dec2 --- /dev/null +++ b/backup/old/xyz.py @@ -0,0 +1,10 @@ +import matplotlib.pyplot as plt +import json + +f = open('list04', 'r') +data = json.loads(f.read()) + +plt.bar(range(len(data)), [len(i) for i in data.values()], align='center') +plt.xticks(range(len(data)), data.keys(),rotation=90) + +plt.savefig('img', dpi=1000) -- cgit v1.2.3