          self.ylabel = ylabel
          self.set_yscale_type(scale)
          logger.debug("Refreshed session graph")
  
      def set_yscale_type(self, scale):
          """ switch the y-scale and redraw """
          logger.debug("Updating scale type: '%s'", scale)
          self.scale = scale
          self.update_plot(initiate=True)
          self.axes_set_yscale(self.scale)
          self.plotcanvas.draw()
 
</s> remove         self.scale = scale
        self.update_plot(initiate=True)
        self.axes_set_yscale(self.scale)
        self.plotcanvas.draw()
 </s> add         self._scale = scale
        self._update_plot(initiate=True)
        self._axes_set_yscale(self._scale)
        self._plotcanvas.draw() </s> remove         self.calcs = data
        self.ylabel = ylabel
 </s> add         self._calcs = data
        self._ylabel = ylabel </s> remove         self.scale = scale
 </s> add         self._scale = scale </s> remove     def refresh(self, data, ylabel, scale):
        """ Refresh graph data """
 </s> add     def refresh(self, data, ylabel: str, scale: str) -> None:
        """ Refresh the Session Graph's data.

        Parameters
        ----------
        data: :class:`lib.gui.analysis.stats.Calculations`
            The statistics class that holds the data to be displayed
        ylabel: str
            The data label for the y-axis
        scale: str
            Should be one of ``"log"`` or ``"linear"``
        """ </s> remove         self.toolbar_place(self)
        self.plotcanvas.draw()
 </s> add         self._toolbar_place(self)
        self._plotcanvas.draw()
    def set_yscale_type(self, scale: str) -> None:
        """ Set the scale type for the y-axis and redraw.

        Parameters
        ----------
        scale: str
            Should be one of ``"log"`` or ``"linear"``
        """
          self.ylabel = ylabel
          self.set_yscale_type(scale)
          logger.debug("Refreshed session graph")
  
    def set_yscale_type(self, scale: str) -> None:
        """ Set the scale type for the y-axis and redraw.

        Parameters
        ----------
        scale: str
            Should be one of ``"log"`` or ``"linear"``
        """
    def set_yscale_type(self, scale: str) -> None:
        """ Set the scale type for the y-axis and redraw.

        Parameters
        ----------
        scale: str
            Should be one of ``"log"`` or ``"linear"``
        """
          logger.debug("Updating scale type: '%s'", scale)
          self.scale = scale
          self.update_plot(initiate=True)
          self.axes_set_yscale(self.scale)
          self.plotcanvas.draw()
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