                                   wspace=0.2,
                                   hspace=0.2)
          logger.debug("Set plotcanvas")
  
      def update_plot(self, initiate=True):
          """ Update the plot with incoming data """
          logger.trace("Updating plot")
          if initiate:
              logger.debug("Initializing plot")
              self.lines = list()
              self.ax1.clear()
 
</s> remove         self.plotcanvas.get_tk_widget().pack(side=tk.TOP, padx=5, fill=tk.BOTH, expand=True)
        self.fig.subplots_adjust(left=0.100,
                                 bottom=0.100,
                                 right=0.95,
                                 top=0.95,
                                 wspace=0.2,
                                 hspace=0.2)
 </s> add         self._plotcanvas.get_tk_widget().pack(side=tk.TOP, padx=5, fill=tk.BOTH, expand=True)
        self._fig.subplots_adjust(left=0.100,
                                  bottom=0.100,
                                  right=0.95,
                                  top=0.95,
                                  wspace=0.2,
                                  hspace=0.2) </s> remove             self.lines = list()
            self.ax1.clear()
            self.axes_labels_set()
 </s> add             self._lines = []
            self._ax1.clear()
            self._axes_labels_set() </s> remove             self.legend_place()
 </s> add             self._legend_place() </s> remove         self.plotcanvas.draw()
 </s> add         self._plotcanvas.draw() </s> remove     def axes_labels_set(self):
        """ Set the axes label and range """
        logger.debug("Setting axes labels. y-label: '%s'", self.ylabel)
        self.ax1.set_xlabel("Iterations")
        self.ax1.set_ylabel(self.ylabel)
 </s> add     def _axes_labels_set(self) -> None:
        """ Set the X and Y axes labels. """
        logger.debug("Setting axes labels. y-label: '%s'", self._ylabel)
        self._ax1.set_xlabel("Iterations")
        self._ax1.set_ylabel(self._ylabel)
    def _update_plot(self, initiate: bool = True) -> None:
        """ Update the plot with incoming data

        Parameters
        ----------
        initiate: bool, Optional
            Whether the graph should be initialized for the first time (``True``) or data is being
            updated for an existing graph (``False``). Default: ``True``
        """
                                   wspace=0.2,
                                   hspace=0.2)
          logger.debug("Set plotcanvas")
  
    def _update_plot(self, initiate: bool = True) -> None:
        """ Update the plot with incoming data

        Parameters
        ----------
        initiate: bool, Optional
            Whether the graph should be initialized for the first time (``True``) or data is being
            updated for an existing graph (``False``). Default: ``True``
        """
    def _update_plot(self, initiate: bool = True) -> None:
        """ Update the plot with incoming data

        Parameters
        ----------
        initiate: bool, Optional
            Whether the graph should be initialized for the first time (``True``) or data is being
            updated for an existing graph (``False``). Default: ``True``
        """
          logger.trace("Updating plot")
          if initiate:
              logger.debug("Initializing plot")
              self.lines = list()
              self.ax1.clear()
keep keep keep keep replace replace keep keep keep keep keep
 Update matplotlib requirement
  - bump min requirement to 3.5.1
  - Fix custom toolbar for v3.5.1
  - Documentation + linting 
lib/gui/display_graph.py