title: How to make matplotlib:pyplot resizeable with the Tkinter window in Python?
body: <p>I am trying to build a grid of frames in each there is a matplotlib figure.
  When I resize the window the figure remain with fix size and are not resizing to fit the empty space.
  Is there a way to make the figure change its size according to the canvas (hopefully that it does change with the window size)?</p>
  
  <p><img src="https://i.stack.imgur.com/dy71e.jpg" alt="before expanding the window">
  <img src="https://i.stack.imgur.com/Oa4Nk.jpg" alt="after expanding the window"></p>
  
  <p>This is how I do the embedding in each frame:</p>
  
  <pre><code>self._figure = pyplot.figure(figsize=(4,4))       
  self._axes = self._figure.add_subplot(111)
  self._canvas = FigureCanvasTkAgg(self._figure, master=self._root)
  self._canvas.get_tk_widget().grid(row=1,column=1,rowspan = 4)
  </code></pre>