def _create_figure(height_inches):
 fig = matplotlib.figure.Figure(figsize=(_FIGURE_WIDTH_IN, (height_inches + _FIGURE_BOTTOM_PADDING_IN)), dpi=_FIGURE_DPI, facecolor='white')
 fig.subplots_adjust(bottom=(float(_FIGURE_BOTTOM_PADDING_IN) / height_inches))
 return (fig, (fig.get_figheight() * _FIGURE_DPI))

def _create_figure ( height_inches ) : fig = matplotlib . figure . Figure ( figsize = ( _FIGURE_WIDTH_IN , ( height_inches + _FIGURE_BOTTOM_PADDING_IN ) ) , dpi = _FIGURE_DPI , facecolor = 'white' ) fig . subplots_adjust ( bottom = ( float ( _FIGURE_BOTTOM_PADDING_IN ) / height_inches ) ) return ( fig , ( fig . get_figheight ( ) * _FIGURE_DPI ) )
creates an instance of matplotlib .