graph to appear at the particular place with mathplotlib

I want my graph to appear at the particular place whenever I click on the graph button. I am using matplotlib for plotting graph.

Please do refer to the image for clear understanding.

Many thanks in advance.