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

Visualizations Terminus

Stats styling

The stats panel that appears in a default Terminus diagram can be adjusted or hidden entirely. This gives us even more control over the presentation of our Terminus diagram.


Sample data

Let's import PlotAPI and load our sample data.

from plotapi import Terminus

links = [
    {"source":"England", "target":"Germany", "value": 1000},
    {"source":"England", "target":"France", "value": 3000},
    {"source":"England", "target":"Spain", "value": 5000},
    {"source":"England", "target":"Italy", "value": 4000},
    {"source":"England", "target":"Japan", "value": 800},
    
    {"source":"Ireland", "target":"Germany", "value": 3500},
    {"source":"Ireland", "target":"France", "value": 3750},
    {"source":"Ireland", "target":"Spain", "value": 1750},
    {"source":"Ireland", "target":"Italy", "value": 5000},
    {"source":"Ireland", "target":"Japan", "value": 400},
]

Demonstration

There are many opportunities to customise the Terminus stats panel.

  • show_stats, to show or hide the stats panel.
  • stats_text_width, to adjust the width of each stats column.
  • show_stats_title, to hide or show the stats titles.

Let's try a few combinations.

Terminus(links, show_stats=False).show()
Terminus(links, show_stats_title=False).show_png()
Notebook PNG image
Terminus(links, stats_text_width=150).show_png()
Notebook PNG image
Previous
Terminus