initial commit; functions for all plots