summaryrefslogtreecommitdiff
path: root/backup/old/xyz.py
diff options
context:
space:
mode:
Diffstat (limited to 'backup/old/xyz.py')
-rw-r--r--backup/old/xyz.py10
1 files changed, 10 insertions, 0 deletions
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)