documentation for plots.py