def is_star_to_end(fig):
    """
    Check if '*' at the end of a window name

    :param fig: matplotlib figure
    """
    name = fig.canvas.get_window_title()

    if name[-1] == '*':
        return True
    else:
        return False