diff options
| author | seth <[email protected]> | 2022-06-28 23:43:07 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2022-06-28 23:54:35 -0400 |
| commit | b491e255945f055c26bfefc9d0526f1a36e7a554 (patch) | |
| tree | ea5fb42e463dba6c7bc092159361b5a0ae0294bb /countdistros_pichart.py | |
initial commit
Diffstat (limited to 'countdistros_pichart.py')
| -rwxr-xr-x | countdistros_pichart.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/countdistros_pichart.py b/countdistros_pichart.py new file mode 100755 index 0000000..ed66d71 --- /dev/null +++ b/countdistros_pichart.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python + +import countdistros as countd +import matplotlib.pyplot as plt + +def run(): + data = countd.get_data() + + labels = [] + values = [] + for x, y in data.items(): + labels.append(x) + values.append(y) + + plt.pie(values, labels=labels) + plt.axis('equal') + plt.show() + +if __name__ == '__main__': + run() |
