Home | History | Annotate | Download | only in tko

Lines Matching refs:plots

178 def _create_line(plots, labels, plot_info):
182 plots: list of dicts containing the plot data. Each dict contains:
200 plot_height = _MULTIPLE_PLOT_HEIGHT_PER_PLOT * len(plots)
207 for plot_index, (plot, color) in enumerate(zip(plots, _colors(len(plots)))):
213 subplot = figure.add_subplot(len(plots), 1, plot_index + 1)
216 # for separate plots, just invert the y-axis
220 # manually, since all plots share a y-axis
278 legend = figure.legend(lines, [plot['label'] for plot in plots],
309 def _create_bar(plots, labels, plot_info):
313 plots: list of dicts containing the plot data.
338 width = 0.8 / len(plots)
341 for plot_index, (plot, color) in enumerate(zip(plots, _colors(len(plots)))):
347 len(plots))
356 for plot_index, plot in enumerate(plots):
358 len(plots))
387 figure.legend(bars, [plot['label'] for plot in plots])
484 def _find_plot_by_label(plots, label):
485 for index, plot in enumerate(plots):
491 def _normalize_to_series(plots, base_series):
492 base_series_index = _find_plot_by_label(plots, base_series)
493 base_plot = plots[base_series_index]
497 del plots[base_series_index]
499 for plot in plots:
550 plots = []
577 plots.append({
598 for plot in plots:
619 _normalize_to_series(plots, base_series)
623 figure, area_data = _create_line(plots, labels, plot_info)
625 figure, area_data = _create_bar(plots, labels, plot_info)
629 text_y = .95 - .0075 * len(plots)