  
      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()
          logger.debug("Updated scale type")
 
</s> remove     def set_yscale_type(self, scale):
        """ switch the y-scale and redraw """
 </s> add     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"``
        """ </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     """ Session Graph for session pop-up """
    def __init__(self, parent, data, ylabel, scale):
 </s> add     """ Session Graph for session pop-up.

    Parameters
    ----------
    parent: :class:`tkinter.ttk.Frame`
        The parent frame that holds the graph
    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"``
    """
    def __init__(self, parent: ttk.Frame, data, ylabel: str, scale: str) -> None: </s> remove         self.ax1.set_yscale(scale)
 </s> add         self._ax1.set_yscale(scale)

    def _lines_sort(self, keys: List[str]) -> List[List[Union[str, int, Tuple[float]]]]:
        """ Sort the data keys into consistent order and set line color map and line width.
        self._scale = scale
        self._update_plot(initiate=True)
        self._axes_set_yscale(self._scale)
        self._plotcanvas.draw()
  
      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()
        self._scale = scale
        self._update_plot(initiate=True)
        self._axes_set_yscale(self._scale)
        self._plotcanvas.draw()
        self._scale = scale
        self._update_plot(initiate=True)
        self._axes_set_yscale(self._scale)
        self._plotcanvas.draw()
        self._scale = scale
        self._update_plot(initiate=True)
        self._axes_set_yscale(self._scale)
        self._plotcanvas.draw()
          logger.debug("Updated scale type")
keep keep keep keep replace replace replace replace 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