def _view_window(ax):
    """
    Return a tuple describing the view window of an axes object.

    The contents should not be used directly, Rather, several
    return values should be compared with == to determine if the
    window has been panned/zoomed
    """
    ext = (ax.transAxes.transform([(0, 0)]) - ax.transAxes.transform([(1, 1)]))[0]
    xlim, ylim = ax.get_xlim(), ax.get_ylim()
    result = xlim[0], ylim[0], xlim[1], ylim[1], ext[0], ext[1]
    logging.getLogger(__name__).debug("view window: %s", result)
    return result
dataset/ETHPy150Open glue-viz/glue/glue/viewers/image/client.py/_view_window/swapped operands of `-`