Implemented a basic plotting widget