first version of plot.stptw function