def set_figure(self, figure):
        with self.geometry_guard():
            self._refresh_mpl_widget()
Optimize the key and aliases for lookups.
dataset/ETHPy150Open nucleic/enaml/enaml/qt/qt_mpl_canvas.py/QtMPLCanvas.set_figure--crossover with--dataset/ETHPy150Open evennia/evennia/evennia/commands/command.py/Command._optimize