def get_legend_entry(self): if self.label: return legend.Entry(line_style=self.line_style, tick_mark=self.tick_mark, fill_style=None, label=self.label) return None
def get_legend_entry(self): if self.label: return legend.Entry(line_style=(self.legend_line_style or self.line_style), fill_style=(self.legend_fill_style or self.fill_style), label=self.label) return None
def get_legend_entry(self): legends = [] i = 0 for dataset in self.data: fill = self.fill_styles[i] i = (i + 1) % len(self.fill_styles) legends.append(legend.Entry(line_style=self.line_style, fill_style=fill, label=dataset[self.label_col])) return legends
def get_legend_entry(self): if self.label: line_style = self.line_style if not line_style and self.error_bar: line_style = getattr(self.error_bar, 'line_style', None) or \ getattr(self.error_bar, 'hline_style', None) or \ getattr(self.error_bar, 'vline_style', None) if not line_style: raise Exception, 'Line plot has label, but an empty line style and error bar.' return legend.Entry(line_style=line_style, tick_mark=self.tick_mark, fill_style=None, label=self.label) return None
def get_legend_entry(self): if self.label: return legend.Entry(line_style=self.line_styles[0], fill_style=self.fill_styles[0], label=self.label) return None