def __init__(self, options): """Initialize.""" AbstractPlot.__init__(self, options) self.fig.clear() self.fig.set_size_inches(self.options.width, self.options.height)
def __init__(self, dpi=96): """Initialize.""" self.logger = logging.getLogger() Options = namedtuple('Options', 'width height tick_font_size label_font_size dpi') options = Options(6, 6, 12, 12, 96) AbstractPlot.__init__(self, options) self.dpi = dpi
def __init__(self, dpi=96): """Initialize.""" self.logger = logging.getLogger() Options = namedtuple('Options', 'width height tick_font_size label_font_size dpi') options = Options(6, 6, 12, 12, 96) AbstractPlot.__init__(self, options) self.dpi = dpi check_dependencies(['genometreetk'])
def __init__(self, infile, outfile): AbstractPlot.__init__(self, None) self.outfile = outfile self.genomes = None self._parse_data(infile) self.colormap = pylab.cm.bwr self.discreteColourMap = ListedColormap([(141/255.0, 211/255.0, 199/255.0),(255/255.0, 255/255.0, 179/255.0), (190/255.0, 186/255.0, 218/255.0),(251/255.0, 128/255.0, 114/255.0), (128/255.0, 177/255.0, 211/255.0),(253/255.0, 180/255.0, 98/255.0), (179/255.0, 222/255.0, 105/255.0),(252/255.0, 205/255.0, 229/255.0), (217/255.0, 217/255.0, 217/255.0), (188/255.0, 128/255.0, 189/255.0), (204/255.0, 235/255.0, 197/255.0),(255/255.0, 237/255.0, 111/255.0)])
def __init__(self, skip_mpld3=False, dpi=96, output_dir=None): """Initialize.""" self.logger = logging.getLogger() self.skip_mpld3 = skip_mpld3 if not self.skip_mpld3: import mpld3 Options = namedtuple('Options', 'width height tick_font_size label_font_size dpi') options = Options(5, 4, 12, 12, 96) AbstractPlot.__init__(self, options) self.poly_color = (89.0 / 255, 89.0 / 255, 89.0 / 255) self.near_mono_color = (255.0 / 255, 188.0 / 255, 121.0 / 255) self.mono_color = (95.0 / 255, 158.0 / 255, 209.0 / 255) self.median_color = (0.0 / 255, 107.0 / 255, 164.0 / 255) self.dpi = dpi self.output_dir = output_dir
def __init__(self): """Initialize.""" Options = namedtuple('Options', 'width height font_size dpi') options = Options(6, 6, 12, 96) AbstractPlot.__init__(self, options)
def __init__(self, options): """Initialize.""" AbstractPlot.__init__(self, options)
def __init__(self): """Initialize.""" AbstractPlot.__init__(self, None)