Create distribution plotting code.