<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def load_figure(self, fig, fmt):
 """Set a new figure in the figure canvas."""

        self.figcanvas.load_figure(fig, fmt)
        self.scale_image()
        self.figcanvas.repaint()