This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(): |