Plotting code for matplotlib-ggplot2 post