  import matplotlib
  # pylint: disable=wrong-import-position
  matplotlib.use("TkAgg")
  
  from matplotlib import pyplot as plt, style  # noqa
  from matplotlib.backends.backend_tkagg import (FigureCanvasTkAgg,
                                                 NavigationToolbar2Tk)  # noqa
  
  from .tooltip import Tooltip  # noqa
  from .utils import get_config, get_images  # noqa
 
</s> remove class DisplayPage(ttk.Frame):
 </s> add class DisplayPage(ttk.Frame):  # pylint: disable=too-many-ancestors </s> remove             child_object = self.children[child_name]
            self.destroy_tabs_children(child_object)
 </s> add             child_object = self.children[child_name]  # returns the OptionalDisplayPage object
            child_object.close()  # Call the OptionalDisplayPage close() method </s> remove class DisplayOptionalPage(DisplayPage):
 </s> add class DisplayOptionalPage(DisplayPage):  # pylint: disable=too-many-ancestors </s> remove     @staticmethod
    def destroy_tabs_children(tab):
        """ Destroy all tabs children
            Children must be destroyed as forget only hides display
        """
        logger.debug("Destroying children for tab: %s", tab)
        for child in tab.winfo_children():
            logger.debug("Destroying child: %s", child)
            child.destroy()

 </s> add 
from matplotlib import style  # noqa
from matplotlib.figure import Figure  # noqa
  import matplotlib
  # pylint: disable=wrong-import-position
  matplotlib.use("TkAgg")
  
from matplotlib import style  # noqa
from matplotlib.figure import Figure  # noqa
  from matplotlib.backends.backend_tkagg import (FigureCanvasTkAgg,
                                                 NavigationToolbar2Tk)  # noqa
  
  from .tooltip import Tooltip  # noqa
  from .utils import get_config, get_images  # noqa
keep keep keep keep replace keep keep keep keep keep
 bigfix: RuntimeWarning: More than 20 figures have been opened. 
lib/gui/display_graph.py