          self.toolbar = NavigationToolbar(self.plotcanvas, parent)
          self.toolbar.pack(side=tk.BOTTOM)
          self.toolbar.update()
  
  
  class TrainingGraph(GraphBase):  # pylint: disable=too-many-ancestors
      """ Live graph to be displayed during training. """
  
      def __init__(self, parent, data, ylabel):
 
</s> remove class DisplayPage(ttk.Frame):
 </s> add class DisplayPage(ttk.Frame):  # pylint: disable=too-many-ancestors </s> remove class DisplayOptionalPage(DisplayPage):
 </s> add class DisplayOptionalPage(DisplayPage):  # pylint: disable=too-many-ancestors </s> remove         plt.subplots_adjust(left=0.100,
                            bottom=0.100,
                            right=0.95,
                            top=0.95,
                            wspace=0.2,
                            hspace=0.2)
 </s> add         self.fig.subplots_adjust(left=0.100,
                                 bottom=0.100,
                                 right=0.95,
                                 top=0.95,
                                 wspace=0.2,
                                 hspace=0.2)
    def clear(self):
        """ Clear the plots from RAM """
        logger.debug("Clearing graph from RAM: %s", self)
        self.fig.clf()
        del self.fig

          self.toolbar = NavigationToolbar(self.plotcanvas, parent)
          self.toolbar.pack(side=tk.BOTTOM)
          self.toolbar.update()
  
    def clear(self):
        """ Clear the plots from RAM """
        logger.debug("Clearing graph from RAM: %s", self)
        self.fig.clf()
        del self.fig

  
  class TrainingGraph(GraphBase):  # pylint: disable=too-many-ancestors
      """ Live graph to be displayed during training. """
  
      def __init__(self, parent, data, ylabel):
keep keep keep add keep keep keep keep keep
 bigfix: RuntimeWarning: More than 20 figures have been opened. 
lib/gui/display_graph.py