def _lineProfileTitle(x0, y0, x1, y1):
    """Compute corresponding plot title

    This can be overridden to change title behavior.

    :param float x0: Profile start point X coord
    :param float y0: Profile start point Y coord
    :param float x1: Profile end point X coord
    :param float y1: Profile end point Y coord
    :return: Title to use
    :rtype: str
    """
    if x0 == x1:
        title = '{xlabel} = %g; {ylabel} = [%g, %g]' % (x0, y0, y1)
    elif y0 == y1:
        title = '{ylabel} = %g; {xlabel} = [%g, %g]' % (y0, x0, x1)
    else:
        m = (y1 - y0) / (x1 - x0)
        b = y0 - m * x0
        title = '{ylabel} = %g * {xlabel} %+g' % (m, b)

    return title