Skip to content

Instantly share code, notes, and snippets.

import json, collections, plotly.plotly as plotly
with open("tagpromatches.json") as f:
data=json.load(f)
port_counts=collections.Counter(match['port'] for match in data.values())
fig= {
'data': [{
'labels': port_counts.keys(),
import json, plotly.plotly as plotly
with open("tagpromatches.json") as f:
data=json.load(f)
radius=0
segment=0
origin=0
pi=0
sphere=0
import json, plotly.plotly as plotly
with open("tagpromatches.json") as f: #you can get the match data here: https://tagpro.eu/?science
data=json.load(f)
redWins=0
blueWins=0
ties=0
for match in data.values():