Implement ts plot