Code to produce figures used in various lectures