Author code to recreate plot4.png.

Do this as requested.