Пример #1
0
 def save_pie_chart(self, relative_path: str, filename: str) -> None:
     filemanager = GrinderFileManager()
     filemanager.write_results_png(
         self.plot,
         png_file=filename,
         dest_dir=DefaultValues.RESULTS_DIRECTORY,
         sub_dir=relative_path,
     )
Пример #2
0
 def save_pie_chart(self, relative_path: str, filename: str) -> None:
     """
     Save pie chart with filemanager in png
     :param relative_path: subdirectory to save
     :param filename: filename to save
     :return: None
     """
     filemanager = GrinderFileManager()
     if self.plot:
         filemanager.write_results_png(
             self.plot,
             png_file=filename,
             dest_dir=DefaultValues.RESULTS_DIRECTORY,
             sub_dir=relative_path,
         )
         self.plot.close()