  
          self.ax1 = self.fig.add_subplot(1, 1, 1)
          self.plotcanvas = FigureCanvasTkAgg(self.fig, self)
  
          self.initiate_graph()
          self.update_plot(initiate=True)
          logger.debug("Initialized %s", self.__class__.__name__)
  
      def initiate_graph(self):
          """ Place the graph canvas """
          logger.debug("Setting plotcanvas")
 
</s> remove         self.ax1 = self.fig.add_subplot(1, 1, 1)
        self.plotcanvas = FigureCanvasTkAgg(self.fig, self)
 </s> add         self._ax1 = self._fig.add_subplot(1, 1, 1)
        self._plotcanvas = FigureCanvasTkAgg(self._fig, self) </s> remove     def initiate_graph(self):
 </s> add     @property
    def calcs(self):
        """ :class:`lib.gui.analysis.stats.Calculations`. The calculated statistics associated with
        this graph. """
        return self._calcs

    def _initiate_graph(self) -> None: </s> remove         self.calcs = data
        self.ylabel = ylabel
        self.colourmaps = ["Reds", "Blues", "Greens", "Purples", "Oranges", "Greys", "copper",
                           "summer", "bone", "hot", "cool", "pink", "Wistia", "spring", "winter"]
        self.lines = list()
        self.toolbar = None
        self.fig = Figure(figsize=(4, 4), dpi=75)
 </s> add         self._calcs = data
        self._ylabel = ylabel
        self._colourmaps = ["Reds", "Blues", "Greens", "Purples", "Oranges", "Greys", "copper",
                            "summer", "bone", "hot", "cool", "pink", "Wistia", "spring", "winter"]
        self._lines = []
        self._toolbar = None
        self._fig = Figure(figsize=(4, 4), dpi=75) </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.ax1.set_ylim(0.00, 100.0)
        self.ax1.set_xlim(0, 1)

    def axes_limits_set(self, data):
        """ Set the axes limits """
        xmin = self.calcs.start_iteration
        if self.calcs.start_iteration > 0:
            xmax = self.calcs.iterations + self.calcs.start_iteration
 </s> add         self._ax1.set_ylim(0.00, 100.0)
        self._ax1.set_xlim(0, 1)

    def _axes_limits_set(self, data: List[float]) -> None:
        """ Set the axes limits.

        Parameters
        ----------
        data: list
            The data points for the Y Axis
        """
        xmin = self._calcs.start_iteration
        if self._calcs.start_iteration > 0:
            xmax = self._calcs.iterations + self._calcs.start_iteration
        self._initiate_graph()
        self._update_plot(initiate=True)
  
          self.ax1 = self.fig.add_subplot(1, 1, 1)
          self.plotcanvas = FigureCanvasTkAgg(self.fig, self)
  
        self._initiate_graph()
        self._update_plot(initiate=True)
        self._initiate_graph()
        self._update_plot(initiate=True)
          logger.debug("Initialized %s", self.__class__.__name__)
  
      def initiate_graph(self):
          """ Place the graph canvas """
          logger.debug("Setting plotcanvas")
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