              if initiate:
                  self.lines.extend(self.ax1.plot(xrng, self.calcs.stats[item[0]],
                                                  label=item[1], linewidth=item[2], color=item[3]))
              else:
                  self.lines[idx].set_data(xrng, self.calcs.stats[item[0]])
  
          if initiate:
              self.legend_place()
          logger.trace("Updated plot")
  
 
</s> remove                 self.lines.extend(self.ax1.plot(xrng, self.calcs.stats[item[0]],
                                                label=item[1], linewidth=item[2], color=item[3]))
 </s> add                 self._lines.extend(self._ax1.plot(xrng, self._calcs.stats[item[0]],
                                                  label=item[1], linewidth=item[2], color=item[3])) </s> remove         for idx, item in enumerate(self.lines_sort(keys)):
 </s> add         for idx, item in enumerate(self._lines_sort(keys)): </s> remove         keys = list(self.calcs.stats.keys())
 </s> add         keys = list(self._calcs.stats.keys()) </s> remove             self.legend_place()
 </s> add             self._legend_place() </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)
                self._lines[idx].set_data(xrng, self._calcs.stats[item[0]])
              if initiate:
                  self.lines.extend(self.ax1.plot(xrng, self.calcs.stats[item[0]],
                                                  label=item[1], linewidth=item[2], color=item[3]))
              else:
                self._lines[idx].set_data(xrng, self._calcs.stats[item[0]])
  
          if initiate:
              self.legend_place()
          logger.trace("Updated plot")
  
keep keep keep keep 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