This file contains hidden or 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 numpy as np | |
| import matplotlib.pyplot as plt | |
| import collections as col | |
| # Yeah I spent 8h of my life messing around for only 30 lines of code in the end :))) | |
| # If you want to change the cardinality of the poll (number of option), you'll need to edit the code manually, | |
| # as it couldn't be parametrized efficiently. Eg. for a 3 colours poll: | |
| # - Remove cc dd ee everywhere and their declaration | |
| # - Reduce the 1111 vector l.37 |