plotsample function

Create a plot sample.