I'd like to reproduce charts consisting of multiple squares representing a value like this one from xkcd: https://xkcd.com/radiation/
I tried to do it by hand in matplotlib, but it seems too cumbersome.
Do you know any library or easy to use code to produce an image with given (count, column_width) automatically?
EDIT: To clarify my goal: Lets say I want to visualize a comparison of the amount of days I went to work vs. the amount of days I did home office. I would like to visualize both counts side by side with the exact number of squares representing the counts. So the input would just be the dictionary a= {'work': 36, 'home_office': 114}
EDIT2: The PyWaffle from this thread did it for me: How to do waffle charts in python? (square piechart)
Thanks