added code for static plots