def make_clean_figure(figsize, remove_tooltips=False, remove_keybindings=False):
tooltip = mpl.rcParams['<STR_LIT>']<EOL>if remove_tooltips:<EOL><INDENT>mpl.rcParams['<STR_LIT>'] = '<STR_LIT:None>'<EOL><DEDENT>fig = pl.figure(figsize=figsize)<EOL>mpl.rcParams['<STR_LIT>'] = tooltip<EOL>if remove_keybindings:<EOL><INDENT>fig.canvas.mpl_disconnect(fig.canvas.manager.key_press_handler_id)<EOL><DEDENT>return fig<EOL>
Makes a `matplotlib.pyplot.Figure` without tooltips or keybindings

Parameters
----------
figsize : tuple
    Figsize as passed to `matplotlib.pyplot.figure`
remove_tooltips, remove_keybindings : bool
    Set to True to remove the tooltips bar or any key bindings,
    respectively. Default is False

Returns
-------
fig : `matplotlib.pyplot.Figure`