User:Lucasvb/An upgrade to the spatial model of voters: Difference between revisions
User:Lucasvb/An upgrade to the spatial model of voters (view source)
Revision as of 18:54, 7 March 2020
, 4 years ago→Implementation
Line 222:
# Visualize distribution with text blocks
def diststr(op):
return "".join(["_▁▂▃▄▅▆▇█"[int(r/max(op)*7)] for r in op]) # we go up to 7 because the full block looks bad piled up
# Show some distributions generated
|