Engaging plots, made easy.

Easily turn your data into engaging visualizations. Powerful API for coders. Powerful app for everyone.

main.py
notebook.ipynb
main.rs
from plotapi import Chord

Chord(matrix, names).show()

API for coders

Hidden diagonals

By default, Chord displays occurrences where a category is not related to another category. These values appear in the diagonal of the matrix. It may be desirable to hide (but not remove) these values.


Sample data

Let’s import PlotAPI and load our sample data.

from plotapi import Chord

names = ["Action", "Adventure", "Comedy", "Drama", "Fantasy", "Thriller"]

Demonstration

The representation of the diagonal values can be hidden by setting colored_diagonals=False.

Before

Let’s first see what they look like when they’re visible.

Chord(matrix, names, title="Diagonals colored").show()
PlotAPI - Chord Diagram

After

Now let’s see what it looks like when they’re not visible.

Chord(matrix, names, title="Diagonals not colored", colored_diagonals=False).show()
Previous
Chord