I want to create a chart that illustrates the count of a given binary variable using a single shape for each data point, and uses color to indicate if the value is 0 or 1.
The chart below shows an example similar to what I'm looking for. The only difference would be if any datapoints' "Success" value == 0, that point would be red, instead of green.
How might I most easily go about achieving this with Python? Is there a library with a turn-key solution for something like this? If not, how might I easily do this using Matplotlib?
Edit: I've found another example used in a more "scientific" context. It appears to be called a "Waffle Chart". It appears this might then be a duplicate question, as there's an answer here: How to do waffle charts in python? (square piechart)