def plotKernel2D(kernel, figAxis, title):
    """
    Creates a 2D representation of a kernel.

    Parameters
    ----------
    kernel: numpy.array
        Kernel to display in 2D.
    figAxis: matplotlib.figure.axis
        Figure axis where to plot the graphic.
    title: str
        Title of the graphic built.

    Returns
    -------
    imAxis: matplotlib.axis
        Axis in which the image is placed on the plot.
    """
    figAxis.set_title(title, fontsize=15)
    figAxis.set_xlabel('x')
    figAxis.set_ylabel('y')
    figAxis.set_xticks([])
    figAxis.set_yticks([])
    return figAxis.imshow(kernel.real, cmap='hot', interpolation='bicubic')