          keys = sorted([key.replace("raw_", "") for key in self.calcs.stats.keys()
                         if key.startswith("raw_")])
          filename = " - ".join(keys)
          now = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
          filename = os.path.join(location, "{}_{}.{}".format(filename, now, "png"))
          self.fig.set_size_inches(16, 9)
          self.fig.savefig(filename, bbox_inches="tight", dpi=120)
          print("Saved graph to {}".format(filename))
          logger.debug("Saved graph: '%s'", filename)
          self.resize_fig()
  
      def resize_fig(self):
          """ Resize the figure back to the canvas """
 
</s> remove         keys = sorted([key.replace("raw_", "") for key in self.calcs.stats.keys()
 </s> add         keys = sorted([key.replace("raw_", "") for key in self._calcs.stats.keys() </s> remove         self.resize_fig()
 </s> add         self._resize_fig() </s> remove     def save_fig(self, location):
        """ Save the figure to file """
 </s> add     def save_fig(self, location: str) -> None:
        """ Save the current graph to file

        Parameters
        ----------
        location: str
            The full path to the folder where the current graph should be saved
        """ </s> remove     def resize_fig(self):
        """ Resize the figure back to the canvas """
 </s> add     def _resize_fig(self) -> None:
        """ Resize the figure to the current canvas size. """ </s> remove             self.update_plot(initiate=initiate)
            self.plotcanvas.draw()
 </s> add             self._update_plot(initiate=initiate)
            self._plotcanvas.draw()
        filename = os.path.join(location, f"{filename}_{now}.png")
        self._fig.set_size_inches(16, 9)
        self._fig.savefig(filename, bbox_inches="tight", dpi=120)
        print(f"Saved graph to {filename}")
          keys = sorted([key.replace("raw_", "") for key in self.calcs.stats.keys()
                         if key.startswith("raw_")])
          filename = " - ".join(keys)
          now = datetime.datetime.now().strftime("%Y%m%d_%H%M%S")
        filename = os.path.join(location, f"{filename}_{now}.png")
        self._fig.set_size_inches(16, 9)
        self._fig.savefig(filename, bbox_inches="tight", dpi=120)
        print(f"Saved graph to {filename}")
        filename = os.path.join(location, f"{filename}_{now}.png")
        self._fig.set_size_inches(16, 9)
        self._fig.savefig(filename, bbox_inches="tight", dpi=120)
        print(f"Saved graph to {filename}")
        filename = os.path.join(location, f"{filename}_{now}.png")
        self._fig.set_size_inches(16, 9)
        self._fig.savefig(filename, bbox_inches="tight", dpi=120)
        print(f"Saved graph to {filename}")
        filename = os.path.join(location, f"{filename}_{now}.png")
        self._fig.set_size_inches(16, 9)
        self._fig.savefig(filename, bbox_inches="tight", dpi=120)
        print(f"Saved graph to {filename}")
          logger.debug("Saved graph: '%s'", filename)
          self.resize_fig()
  
      def resize_fig(self):
          """ Resize the figure back to the canvas """
keep keep keep keep replace replace 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