def get_subplot_params(figsize):
width, height, = figsize<EOL>try:<EOL><INDENT>left, right = SUBPLOT_WIDTH[width]<EOL><DEDENT>except KeyError:<EOL><INDENT>left = right = None<EOL><DEDENT>try:<EOL><INDENT>bottom, top = SUBPLOT_HEIGHT[height]<EOL><DEDENT>except KeyError:<EOL><INDENT>bottom = top = None<EOL><DEDENT>return SubplotParams(left=left, bottom=bottom, right=right, top=top)<EOL>
Return sensible default `SubplotParams` for a figure of the given size

    Parameters
    ----------
    figsize : `tuple` of `float`
         the ``(width, height)`` figure size (inches)

    Returns
    -------
    params : `~matplotlib.figure.SubplotParams`
        formatted set of subplot parameters