plotting a stack