def __init__(self, xy, axes=None, bbox=None): Table.__init__(self, axes or plt.gca(), bbox=bbox) self.xy = xy self.set_transform(self._axes.transData) self._fixed_widhts = None import matplotlib.pyplot as plt self.max_fontsize = plt.rcParams.get("font.size", 12)
def __init__(self, ax, loc=None, bbox=None, title=None, offset=None): Table.__init__(self, ax, loc, bbox) self.title = title self.offset = offset if self.offset is None: self.offset = [0, 0] if self.title: self.offset[1] -= 0.075