def update(self): global store_address global completed_generation self.a.clear() file_names = [] for i in range(completed_generation): file_names.append("{0}/FRONTS/fronts.{1}".format(store_address, i+1)) plot.plot_pareto_fronts(file_names, self.a, self.axis_labels, self.signConverter) #self.canvas = FigureCanvasTkAgg(self.fig, self.parent) self.canvas.show()
def update(self): """ after each iteration, plot the new front """ global store_address global completed_iteration self.a.clear() file_names = [] for i in range(completed_iteration): file_names.append("{0}/FRONTS/fronts.{1}".format(store_address, i)) plot.plot_pareto_fronts(file_names, self.a, self.axis_labels, self.signConverter) self.canvas.show()