Plotapi, beautiful by default.

Let plotapi do the heavy lifting – enabling beautiful interactive visualisations with a single line of code (instead of hundreds).

Get Plotapi

Getting started with Plotapi Terminus

Made with Plotapi

You can create beautiful, interactive, and engaging visualisations like this one with Plotapi in any programming language.

Preamble

In [1]:
from plotapi import Terminus

Terminus.set_license("your username", "your license key")

Introduction

Our first Plotapi Terminus Diagram! As we can see, we have set our license details in the preamble with Terminus.set_license().

Dataset

Terminus expects a list of dictionary items, these will define the flow of pixels between a source and a target.

In [2]:
links = [
    {"source":"Group A", "target":"First Class", "value": 1000},
    {"source":"Group A", "target":"Second Class (Upper)", "value": 4000},
    {"source":"Group A", "target":"Second Class (Lower)", "value": 5000},
    {"source":"Group A", "target":"Third Class", "value": 1000},
    {"source":"Group A", "target":"Withdrawn", "value": 300},


    {"source":"Group B", "target":"First Class", "value": 500},
    {"source":"Group B", "target":"Second Class (Upper)", "value": 1000},
    {"source":"Group B", "target":"Second Class (Lower)", "value": 2000},
    {"source":"Group B", "target":"Third Class", "value": 5500},
    {"source":"Group B", "target":"Withdrawn", "value": 1300}
]

We can add many source's and target's! As they increase, we may need to adjust Terminus layout properties to accomodate the diagram's size and throughput.

Visualisation

Creating our first Terminus Diagram is as easy as calling Plotapi with our one input.

Here we're using .show() which outputs to a Jupyter Notebook cell, however, we may want to output to an HTML file with .to_html() instead. More on the different output methods later!

In [3]:
Terminus(links).show()
Plotapi - Terminus Diagram

You can do so much more than what's presented in this example, and we'll cover this in later sections. If you want to see the full list of growing features, check out the Plotapi Documentation.

Made with Plotapi

You can create beautiful, interactive, and engaging visualisations like this one with Plotapi in any programming language.

Plotapi, beautiful by default.

Let plotapi do the heavy lifting – enabling beautiful interactive visualisations with a single line of code (instead of hundreds).

Get Plotapi