These examples are perfect for beginners who want to understand how to create common chart types and customize them. shanthakumar007 / visualiztion-using-matplot-lib-basics- Public ...
Easiest workaround is to replace scatter by plot. This won't offer all functionality of scatter, but for the MWE it is sufficient: linestyle='None', marker='o', markersize=np.sqrt(max_marker_size), ...