      def lines_create_colors(self, groupsize, groups):
          """ Create the colors """
          colours = list()
          for i in range(1, groups + 1):
              for colour in self.colourmaps[0:groupsize]:
                  cmap = matplotlib.cm.get_cmap(colour)
                  cpoint = 1 - (i / 5)
                  colours.append(cmap(cpoint))
          logger.trace(colours)
          return colours
 
</s> remove     def lines_create_colors(self, groupsize, groups):
        """ Create the colors """
        colours = list()
 </s> add     def _lines_create_colors(self, groupsize: int, groups: int) -> List[Tuple[float]]:
        """ Create the color maps.

        Parameters
        ----------
        groupsize: int
            The size of each group to display in the graph
        groups: int
            The total number of groups to graph

        Returns
        -------
        list
            The colour map for each group
        """
        colours = [] </s> remove         colours = self.lines_create_colors(groupsize, groups)
 </s> add         colours = self._lines_create_colors(groupsize, groups) </s> remove     def legend_place(self):
        """ Place and format legend """
 </s> add     def _legend_place(self) -> None:
        """ Place and format the graph legend """ </s> remove     def lines_style(self, lines, groupsize):
        """ Set the color map and line width for each group """
 </s> add     def _lines_style(self,
                     lines: List[str],
                     groupsize: int) -> List[List[Union[str, int, Tuple[float]]]]:
        """ Obtain the color map and line width for each group.

        Parameters
        ----------
        lines: list
            The list of sorted line keys to display on the graph
        groupsize: int
            The size of each group to display in the graph

        Returns
        -------
        list
            A list of loss keys with their corresponding line formatting and color information
        """ </s> remove     def lines_groupsize(raw_lines, sorted_lines):
 </s> add     def _lines_groupsize(raw_lines: List[str], sorted_lines: List[str]) -> int:
            for colour in self._colourmaps[0:groupsize]:
      def lines_create_colors(self, groupsize, groups):
          """ Create the colors """
          colours = list()
          for i in range(1, groups + 1):
            for colour in self._colourmaps[0:groupsize]:
                  cmap = matplotlib.cm.get_cmap(colour)
                  cpoint = 1 - (i / 5)
                  colours.append(cmap(cpoint))
          logger.trace(colours)
          return colours
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