Skip to main content

Package for plotting multidirectional graphs

Project description

Multidirectional Graph

PyPI version codecov

Multidirectional Graph is a Python package that allows you to easily create graphs with multiple evaluation criteria, such as good, neutral, and bad.

Installation

You can install Multidirectional Graph using pip:

pip install multidirectional-graph

Usage

Here is an example of how to use Multidirectional Graph:

from multidirectional_graph import MultidirectionalGraph

data = {
    "Leitura": {
        "categ 1A": 5,
        "categ 1B": 9,
        "categ 1C": 5,
    },
    "Escrita": {
        "categ 2A": 2,
        "categ 2B": 4,
        "categ 2C": 9,
        "categ 2D": 3,
    },
    "Nome extremamente grande\nque não cabe no espaço": {
        "categ 3A": 6,
        "categ 3B": 7,
    },
    "Listening": {
        "categ 4A": 2,
        "categ 4B": 3,
    },
}


added_data = {
    "categ 1A": 4,
    "categ 1B": 5,
    "categ 1C": 4,
    "categ 2A": 3,
    "categ 2B": 3,
    "categ 2C": 7,
    "categ 2D": 2,
    "categ 3A": 7,
    "categ 3B": 6,
    "categ 4A": 3,
    "categ 4B": 2,
}

graph = MultidirectionalGraph(
    data,
    tipo_avaliacao = "Lingua Inglesa",
    good_color="green",
    figsize=(5.5,15)
)

graph.add_values(added_data, label="Autoavaliação")

fig = graph.plot()

fig.savefig("images/teste.png", dpi=100, bbox_inches='tight')

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

multidirectional_graph-0.1.5.tar.gz (2.5 MB view hashes)

Uploaded Source

Built Distribution

multidirectional_graph-0.1.5-py3-none-any.whl (2.6 MB view hashes)

Uploaded Python 3

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