adding documentation to plotting functions