def __init__(self, hyetodata=None, hydrodata=None, figsize=None, dpi=None, facecolor=None, edgecolor=None, linewidth=1.0, # the default linewidth of the frame frameon=True, # whether or not to draw the figure frame subplotpars=None, # default to rc ): # Initial checks self._hyetodata = hyetodata self._hydrodata = hydrodata # kwargs = dict(figsize=figsize, dpi=dpi, facecolor=facecolor, edgecolor=edgecolor, frameon=frameon, linewidth=linewidth, subplotpars=subplotpars, series=None) TimeSeriesFigure.__init__(self, **kwargs) # Add axes self.hyeto = self.add_tsplot(211, series=hyetodata) self.hyeto.set_position([0.07, 0.67, 0.90, 0.23]) self.hydro = self.add_tsplot(212, series=hydrodata, sharex=self.hyeto) self.hydro.set_position([0.07, 0.12, 0.90, 0.53])
def __init__(self, **kwargs): TimeSeriesFigure.__init__(self, **kwargs)