def plot_rec(ax, patches, cell_lower_left_x, width, cell_lower_left_y, height):
    """ This function plots a rectangle

    :param ax: Axis object
    :param patches: Patches object
    :param cell_lower_left_x: Lower left corner x coordinate of rectangle
    :param width: Width of rectangle
    :param cell_lower_left_y: Lower left corner y coordinate of rectangle
    :param height: Height of rectangle
    :return: Axis object
    """

    p = patches.Rectangle(
        (cell_lower_left_x, cell_lower_left_y), width, height,
        fill=False, transform=ax.transAxes, clip_on=False, linewidth=0.5)

    ax.add_patch(p)

    return ax