  
      def save_fig(self, location):
          """ Save the figure to file """
          logger.debug("Saving graph: '%s'", location)
          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)
 
</s> remove         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))
 </s> add         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}") </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             self.update_plot(initiate=initiate)
            self.plotcanvas.draw()
 </s> add             self._update_plot(initiate=initiate)
            self._plotcanvas.draw() </s> remove         self.resize_fig()
 </s> add         self._resize_fig() </s> remove         raw_lines = list()
        sorted_lines = list()
 </s> add         raw_lines = []
        sorted_lines = []
        keys = sorted([key.replace("raw_", "") for key in self._calcs.stats.keys()
  
      def save_fig(self, location):
          """ Save the figure to file """
          logger.debug("Saving graph: '%s'", location)
        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)
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