Put setplot functions inside example scripts.
Merge pull request #341 from ketch/example_plotting

Put setplot functions inside example scripts.