def axes_handler(new_axis):
    """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
	----------
	new_axis : Axes object
		The new Axes instance to be set as the current axis.
	
	Returns
	-------
	curr_axis : Axes object
		The previous Axes instance.
	"""
    from matplotlib.pyplot import gca, sca
    curr_axis = gca()
    sca(new_axis)
    return curr_axis
