CLN: Refactoring tsplot