Add matplotlib drawing and basic operations