def graph(self, png_format=False):
     if (self.__glocks_holder_waiters_by_date):
         path_to_image_files = self.__generate_graphs_glocks_holder_waiter(self.__glocks_holder_waiters_by_date,
                                                                           self.__snapshots_dt, png_format=png_format)
         if (path_to_image_files):
             generate_graph_index_page(os.path.join(self.get_path_to_output_dir(),
                                                    self.get_filesystem_name()),
                                       path_to_image_files, self.get_title())
Пример #2
0
 def graph(self, png_format=False):
     if (self.get_snapshots()):
         path_to_image_files = self.__generate_graphs_by_glock_type(png_format=png_format)
         if (path_to_image_files):
             generate_graph_index_page(os.path.join(self.get_path_to_output_dir(),
                                                    self.get_filesystem_name()),
                                       path_to_image_files, "Glock Types")
         path_to_image_files = self.__generate_graphs_by_glock_state(png_format=png_format)
         if (path_to_image_files):
             generate_graph_index_page(os.path.join(self.get_path_to_output_dir(),
                                                    self.get_filesystem_name()),
                                       path_to_image_files, "Glock States")