def endPlot(self, plts, legends, path): """close plots. """ title = path2str(path) figid = 10 lines = [] figid = self.bokeh_figure._id lines.append("") lines.append("#$bkh %s$#" % figid) lines.append("") r = ResultBlock("\n".join(lines), title=title) r.bokeh = self.bokeh_figure return ResultBlocks(r)
def endPlot(self, plots, legends, path): """close plots. """ result = ResultBlocks() title = path2str(path) for plot in plots: figid = plot._id lines = [] lines.append("") lines.append("#$bkh %s$#" % figid) lines.append("") r = ResultBlock("\n".join(lines), title=title) r.bokeh = plot result.append(r) return result