Skip to main content

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)

ideal bar chart image

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()

ideal pie chart image

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 details)

Uploaded Source

Built Distribution

idealforms-0.0.14-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file idealforms-0.0.14.tar.gz.

File metadata

  • Download URL: idealforms-0.0.14.tar.gz
  • Upload date:
  • Size: 72.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for idealforms-0.0.14.tar.gz
Algorithm Hash digest
SHA256 053550d69de09e5d494e29484bda5f30232e8a5138e0afcbb8cc4e5a6f46c041
MD5 12f0acc2f6caf777160c916b83872d43
BLAKE2b-256 e2ec42b2172cd6a03e7f506a0bc9d6d6bd9058dd0bffeeebd6bb974a8463c90a

See more details on using hashes here.

File details

Details for the file idealforms-0.0.14-py3-none-any.whl.

File metadata

  • Download URL: idealforms-0.0.14-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for idealforms-0.0.14-py3-none-any.whl
Algorithm Hash digest
SHA256 e434f7dd1a4e97e0c19dd3048098280dde084c7ccf18c81ca424524b2f9a85db
MD5 23e798daffa0d03930583b3d8fcc2c4d
BLAKE2b-256 dccb31d5d86f91646f560e02e12b63f2eaf2c28e7187b278565c410bcce06d16

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page