DataFrame to Samples Dict
Dr. Shahin Rostami
by Dr. Shahin Rostami
1y ago
Preamble¶ In [1]: import pandas as pd from plotapi import LineFight LineFight.set_license("your username", "your license key") Introduction¶ Plotapi BarFight, PieFight, and LineFight, expect a list of dict items that define the value of nodes over time. The following is an example of this data structure. In [2]: samples = [ {"order": 2000.01, "name": "Sankey", "value": 10}, {"order": 2000.01, "name": "Terminus", "value": 10}, {"order": 2000.01, "name": "Chord", "value": 40}, {"order": 2000.01, "name": "Bar Fight", "value": 90}, {"order": 2000.01, "name ..read more
Visit website
Using the Temporal Format for the Order
Dr. Shahin Rostami
by Dr. Shahin Rostami
1y ago
Preamble¶ In [1]: from plotapi import LineFight LineFight.set_license("your username", "your license key") Introduction¶ Our first Plotapi Line Fight Diagram! Plotapi Line Fight is a beautiful and feature rich take on the popular Line Chart Race. As we can see, we have set our license details in the preamble with LineFight.set_license(). Dataset¶ Plotapi Line Fight expects at minimum a list of dictionary items, these will define the value of our lines over time. In [7]: samples = [ {"order": 2000.01, "name": "Sankey", "value": 10}, {"order": 2000.01, "name": "Ter ..read more
Visit website
Changing Font Sizes
Dr. Shahin Rostami
by Dr. Shahin Rostami
1y ago
Preamble¶ In [1]: from plotapi import Sankey Sankey.set_license("your username", "your license key") Introduction¶ The Plotapi Sankey diagram font-sizes changed independently. As we can see, we have set our license details in the preamble with Sankey.set_license(). Dataset¶ Plotapi Sankey expects a list of dictionary items, these will define the flow between a source and a target. In [2]: links = [ {"source":"Group A", "target":"Rank 1", "value": 1000}, {"source":"Group B", "target":"Rank 1", "value": 300}, {"source":"Group B", "target":"Rank 2", "value": 600 ..read more
Visit website
Getting started with Plotapi Pareto Front
Dr. Shahin Rostami
by Dr. Shahin Rostami
2y ago
Preamble¶ In [1]: from plotapi import ParetoFront ParetoFront.set_license("your username", "your license key") Introduction¶ Our first Plotapi Pareto Front Diagram! Plotapi Pareto Front is a beautiful and feature rich take on non-dominated sorting over time. As we can see, we have set our license details in the preamble with ParetoFront.set_license(). Dataset¶ Plotapi Pareto Front expects at minimum a list of dictionary items, these will define bi-objective solutions over time. In [2]: samples = [ {'order': 20200101, 'objv_1': 40, 'objv_2': 12}, {'order': 2020 ..read more
Visit website
Displaying Event Information
Dr. Shahin Rostami
by Dr. Shahin Rostami
2y ago
Preamble¶ In [1]: from plotapi import LineFight LineFight.set_license("your username", "your license key") Introduction¶ Let's take a look at how we can display event content during our visualisation at different times. This can be useful for displaying additional information or images that are relevant to specific events. Plotapi Line Fight is a beautiful and feature rich take on the popular Line Chart Race. As we can see, we have set our license details in the preamble with LineFight.set_license(). Dataset¶ Plotapi Line Fight expects at minimum a list of dictionary items, these ..read more
Visit website
Changing the Colours and Icons
Dr. Shahin Rostami
by Dr. Shahin Rostami
2y ago
Preamble¶ In [1]: from plotapi import LineFight LineFight.set_license("your username", "your license key") Introduction¶ Let's take a look at how we can change the colours and icons for nodes in our Line Fight diagram. Plotapi Line Fight is a beautiful and feature rich take on the popular Line Chart Race. As we can see, we have set our license details in the preamble with LineFight.set_license(). Dataset¶ Plotapi Line Fight expects at minimum a list of dictionary items, these will define the value of our segments over time. In [2]: samples = [ {"order": 0, "name": "S ..read more
Visit website
Getting started with Plotapi Line Fight
Dr. Shahin Rostami
by Dr. Shahin Rostami
2y ago
Preamble¶ In [1]: from plotapi import LineFight LineFight.set_license("your username", "your license key") Introduction¶ Our first Plotapi Line Fight Diagram! Plotapi Line Fight is a beautiful and feature rich take on the popular Line Chart Race. As we can see, we have set our license details in the preamble with LineFight.set_license(). Dataset¶ Plotapi Line Fight expects at minimum a list of dictionary items, these will define the value of our lines over time. In [38]: samples = [ {"order": 0, "name": "Sankey", "value": 10}, {"order": 0, "name": "Terminus", "va ..read more
Visit website
Pokemon Types with Plotapi Heat Map
Dr. Shahin Rostami
by Dr. Shahin Rostami
2y ago
Preamble¶ In [1]: from plotapi import HeatMap import json HeatMap.set_license("your username", "your license key") Introduction¶ In this notebook we're going to use Plotapi Heat Map to visualise the co-occurrences between Pokémon types. We"ll use Python, but Plotapi can be used from any programming language. Dataset¶ We're going to use Pokémon (Gen 1-8) data, a fork of which is available in this repository. Let"s get loading the data. In [2]: with open("pokemon_types.json", "r") as f: data = json.load(f) names = ["Bug", "Dark", "Dragon", "Electric", "Fairy", "Fi ..read more
Visit website
Event Information Modes
Dr. Shahin Rostami
by Dr. Shahin Rostami
2y ago
Preamble¶ In [1]: from plotapi import BarFight BarFight.set_license("your username", "your license key") Introduction¶ Let's take a look at how we can change the colours and icons for nodes in our Bar Fight diagram. Plotapi Bar Fight is a beautiful and feature rich take on the popular Bar Chart Race. As we can see, we have set our license details in the preamble with BarFight.set_license(). Dataset¶ Plotapi Bar Fight expects at minimum a list of dictionary items, these will define the value of our segments over time. In [2]: samples = [ {"order": 0, "name": "Sankey ..read more
Visit website
Displaying Event Information
Dr. Shahin Rostami
by Dr. Shahin Rostami
2y ago
Preamble¶ In [1]: from plotapi import BarFight BarFight.set_license("your username", "your license key") Introduction¶ Let's take a look at how we can display event content during our visualisation at different times. This can be useful for displaying additional information or images that are relevant to specific events. Plotapi Bar Fight is a beautiful and feature rich take on the popular Bar Chart Race. As we can see, we have set our license details in the preamble with BarFight.set_license(). Dataset¶ Plotapi Bar Fight expects at minimum a list of dictionary items, these will ..read more
Visit website

Follow Dr. Shahin Rostami on FeedSpot

Continue with Google
Continue with Apple
OR