Modified the Plotting demo.