def plot_finalizer(xlog, ylog, xlim, ylim, title, xlabel, ylabel, xinvert,
    yinvert, grid_control):
    """New axis handler
	
	This function is a base-level function used by most other plotting functions to set the current Axes instance
	to ax and returns the old Axes instance to be later reverted.
	
	Parameters
	----------
	xlog : None or bool
		If True, the x-axis scale is set to 'log'.
	ylog : None or bool
		If True, the y-axis scale is set to 'log'.
	xlim : None or array-like
		If given, defines the low and high limits for the x-axis. The first two elements must be int and/or float.
	ylim : None or array-like
		If given, defines the low and high limits for the y-axis. The first two elements must be int and/or float.
	title : None or str
		If given, defines the title of the figure.
	xlabel : None or str
		If given, defines the label of the x-axis.
	ylabel : None or str
		If given, defines the label of the y-axis.
	xinvert : None or bool
		If True, ensures the x-axis is inverted. If False, ensures the x-axis is not inverted.
	yinvert : None or bool
		If True, ensures the y-axis is inverted. If False, ensures the y-axis is not inverted.
	grid_control : None or bool
		If True, ensures the grid is turned on. If False, ensures the grid is turned off.
	
	Returns
	-------
	None
	"""
    from .defaults import Params
    from matplotlib.pyplot import gca, grid, xscale, yscale
    from matplotlib.pyplot import title as plt_title, xlabel as plt_xlabel, xlim as plt_xlim, ylabel as plt_ylabel, ylim as plt_ylim
    if xlog:
        xscale('log')
    if ylog:
        yscale('log')
    if xlim is not None:
        plt_xlim(xlim)
    else:
        plt_xlim(auto=True)
    if ylim is not None:
        plt_ylim(ylim)
    else:
        plt_ylim(auto=True)
    if title is not None:
        plt_title(title)
    if xlabel is not None:
        plt_xlabel(xlabel)
    if ylabel is not None:
        plt_ylabel(ylabel)
    if xinvert:
        if not gca().xaxis_inverted():
            gca().invert_xaxis()
    if yinvert:
        if not gca().yaxis_inverted():
            gca().invert_yaxis()
    if grid_control is None:
        grid_control = Params.grid
    grid(b=grid_control, which=Params.grid_which, axis=Params.grid_axis)
