plot demo in python using matplotlib