How to draw displacement time graphs