docs: def __create_csv_eps(self, metric1, metric2, csv_labels, file_label,
                           title_label, project=None):
          """
          Generate the CSV data and EPS figs files for two metrics
          :param metric1: first metric class
          :param metric2: second metric class
          :param csv_labels: labels to be used in the CSV file
          :param file_label: shared filename token to be included in csv and eps files
          :param title_label: title for the EPS figures
          :param project: name of the project for which to generate the data
          :return:
          """
  
          logger.debug("CSV file %s generation in progress", file_label)
  
          esfilters = None
          csv_labels = csv_labels.replace("_", "")  # LaTeX not supports
  
          if project and project != self.GLOBAL_PROJECT:
              esfilters = {"project": project}
          m1 = metric1(self.es_url, self.get_metric_index(metric1),
                       esfilters=esfilters,
                       start=self.start, end=self.end)
          m1_ts = m1.get_ts()
  
          if metric2:
              m2 = metric2(self.es_url, self.get_metric_index(metric2),
                           esfilters=esfilters,
                           start=self.start, end=self.end)
              m2_ts = m2.get_ts()
  
          csv = csv_labels + '\n'
          for i in range(0, len(m1_ts['date'])):
              if self.interval == 'quarter':
                  date_str = self.build_period_name(parser.parse(m1_ts['date'][i]), start_date=True)
              else:
                  date_str = parser.parse(m1_ts['date'][i]).strftime("%y-%m")
              csv += date_str
              csv += "," + self.str_val(m1_ts['value'][i])
              if metric2:
                  csv += "," + self.str_val(m2_ts['value'][i])
              csv += "\n"
  
          data_path = os.path.join(self.data_dir, "data")
  
          if project:
              file_name = os.path.join(data_path, file_label + "_" + project + ".csv")
          else:
              file_name = os.path.join(data_path, file_label + ".csv")
  
          os.makedirs(os.path.dirname(file_name), exist_ok=True)
          with open(file_name, "w") as f:
              f.write(csv)
  
          logger.debug("CSV file %s was generated", file_label)
  
          fig_path = os.path.join(self.data_dir, "figs")
  
          if project:
              file_name = os.path.join(fig_path, file_label + "_" + project + ".eps")
              title = title_label + ": " + project
          else:
              file_name = os.path.join(fig_path, file_label + ".eps")
              title = title_label
  
          if self.interval != 'quarter':
              x_val = [parser.parse(val).strftime("%y-%m") for val in m1_ts['date']]
          else:
              x_val = []
              for val in m1_ts['date']:
                  period = self.build_period_name(parser.parse(val), start_date=True)
                  x_val.append(period)
          if metric2:
              self.bar_chart(title, x_val, m1_ts['value'],
                             file_name, m2_ts['value'],
                             legend=[m1.name, m2.name])
          else:
              self.bar_chart(title, x_val, m1_ts['value'], file_name,
                             legend=[m1.name])