Some charts I prepared earlier
Project description
Ideal Forms
"Some charts I prepared earlier."
Matplotlib charts formatted according to The Data Visualization Catalogue.
Install
pip install idealforms
Bar
from idealforms.bar import bar
from idealforms.formatters import money_formatter
categorical_data = dict(apples=500000,
oranges=1200000,
mangos=2200005)
fig, ax = bar(categorical_data,
x_label='revenue',
y_label='fruit',
title='Fruit Revenue',
formatter=money_formatter)
Pie
import matplotlib.pyplot as plt
from idealforms.pie import pie
from collections import Counter
my_pi = "3.1415926535897"
pi_digits_count = Counter(str(my_pi).replace('.',''))
fig, ax = pie(
pi_digits_count,
title='Py Pi Pie',
reverse_color_order=True,
largest_color='xkcd:macaroni and cheese',
figsize=(4,4)
)
plt.show()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
idealforms-0.0.14.tar.gz
(72.0 kB
view hashes)
Built Distribution
Close
Hashes for idealforms-0.0.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e434f7dd1a4e97e0c19dd3048098280dde084c7ccf18c81ca424524b2f9a85db |
|
MD5 | 23e798daffa0d03930583b3d8fcc2c4d |
|
BLAKE2b-256 | dccb31d5d86f91646f560e02e12b63f2eaf2c28e7187b278565c410bcce06d16 |