本文整理匯總了Python中Plotter.Plotter.showPlot方法的典型用法代碼示例。如果您正苦於以下問題:Python Plotter.showPlot方法的具體用法?Python Plotter.showPlot怎麽用?Python Plotter.showPlot使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Plotter.Plotter
的用法示例。
在下文中一共展示了Plotter.showPlot方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: print
# 需要導入模塊: from Plotter import Plotter [as 別名]
# 或者: from Plotter.Plotter import showPlot [as 別名]
if pg.draw_graph:
plotter.addPoint(i, this_fittest.fitness)
if fittest_team is None or this_fittest.fitness > fittest_team.fitness:
fittest_team = copy.deepcopy(this_fittest)
print("New fittest: %f\n\tRecord: %s\n" % (fittest_team.fitness, str(fittest_team.record)))
results_file.write("New fittest: %f\n\tRecord: %s\n" % (fittest_team.fitness, str(fittest_team.record)))
fittest_string = fittest_team.printTeam()
results_file.write(fittest_string)
fittest_team.resetPokemon()
results_file.write("Experiment %d duration: %f\n" % (experiment_num, time.time() - experiment_start))
print("Experiment %d duration: %f" % (experiment_num, time.time() - experiment_start))
if pg.draw_graph:
plotter.showPlot(title=experiment_dir + "/Experiment-" + str(experiment_num), save_to_file=True)
plotter.clearPoints()
fittest_team.printTeam()
print("Total time spent: ", time.time() - overall_time_start)
input()
# fittest_team.resetPokemon()
# opposing_team_list[0].resetPokemon()
# fittest_team.debug = True
# opposing_team_list[0].debug = True
#
# bs = BattleSim(fittest_team, opposing_team_list[0], debug=True)
#
# bs.run_battle()