User:Lucasvb/An upgrade to the spatial model of voters: Difference between revisions
Content added Content deleted
Line 222: | Line 222: | ||
# Visualize distribution with text blocks |
# Visualize distribution with text blocks |
||
def diststr(op): |
def diststr(op): |
||
return "".join(["_▁▂▃▄▅▆▇█"[int(r/max(op)*7)] for r in 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 |
# Show some distributions generated |