plot study using matplotlib