Skip to main content

Python library written on top of matplotlib library for customizable proportional charts

Project description

Matprops

matprops is a Python library for visualizing proportional data. It is build above matplotlib (the visualization library). Understanding proportional data is quite easy but when it comes to bigger picture we lack of seeing everything

Installation

Binary installers for the latest released version are available at the Python Package Index (PyPI)

# or PyPI
pip install matprops

The source code is currently hosted on GitHub

Area proportional chart

Area proportional charts also known as square area proportional charts is a very easy and basic proportional chart to know first in list. matprops provide a lage amount of customization in creating square area proportional charts

# Pandas - DataFrame Support
import pandas as pd

# Matprops
from matprops import props

props is a subclass doing its work for simple proportional charts

# Creating a dataframe with the help of pandas
dataset = pd.DataFrame(
    {
        'Country': ['France', 'Germany', 'United Arab Emirates'], 
        'Men (%)': [60, 80, 30],
        'Capital': ['Paris', 'Berlin', 'Mecca']
    }
)

# Changing the limits
# Limit : 0 -> 1
dataset["Men (%)"] = dataset["Men (%)"]/100

Reducing the limits is mandatory as the matprops is all about proportional charts we need to get the value down to 0 -> 1 range. Ignoring the limits may cause unexpected warnings and errors

Simple square area proportional charts are capable of showing some insights through this data

pt.AreaProp(dataset, "Men (%)", labels=True, title="Country", description="Capital")

Output

Try customizing the graph with everything possible

matprops provides fast and reliable data visualizations for proportional data. matprops currently work only for labelled data for which it is found to be more helpful in defining proportions. matprops aims to move more than proportional charts in upcoming versions. We have enough proportional chart libraries around the Python community, but the thing that differs matprops is its creativity and customization. Some rare visualizations are about to be worked on matprops soon

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

matprops-1.0.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

matprops-1.0.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file matprops-1.0.0.tar.gz.

File metadata

  • Download URL: matprops-1.0.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for matprops-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c7d0ec24c80f34047b689be0318a8e3ddc2414e5a25544ebedc45ef2daeb55f2
MD5 f24d8e03cc5e30bc9ab89b17a152e53b
BLAKE2b-256 2af664487749f144526eb21f5ada3c265fdc05396ac63899cf51cb6086395cea

See more details on using hashes here.

File details

Details for the file matprops-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: matprops-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for matprops-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c7a75c6f0354801caca2f3d4d9e7b016f40060f584df1f918a74552a161098ac
MD5 c75f34958a87d7f8a487685cb1e2b215
BLAKE2b-256 6c9f9be8a636c3880eb281f7ca018a83cc27beadf485029e279c34be3243ed3a

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