make plot procedures more flexible
finish analysis