'Setup plugin from config options'

def setup(self):

    self.year_spans = build_year_spans(self.config['bucket_year'].get())
    if (self.year_spans and self.config['extrapolate']):
        [self.ys_len_mode, self.ys_repr_mode] = extract_modes(self.year_spans)
        self.year_spans = extend_year_spans(self.year_spans, self.ys_len_mode)
    self.alpha_spans = build_alpha_spans(self.config['bucket_alpha'].get(), self.config['bucket_alpha_regex'].get())
