def writeDotImage(self, filename):
""" Writes a image representation of the individual
:param filename: the output file image
"""
if not HAVE_PYDOT:
utils.raiseException("You must install Pydot to use this feature !")
graph = pydot.Dot()
self.writeDotGraph(graph)
graph.write_jpeg(filename, prog='dot')
# -----------------------------------------------------------------
评论列表
文章目录