plotting demo code