def compute_scale_and_translate(self, range, n):
        """Compute the scale and translate parameters for a linear transformation
        ``output = s * input + t``, mapping from data space to axis space.

        Parameters
        ----------
        range : tuple
            A tuple representing the boundary inclusive range ``[min, max]``
            along the axis, in data space.
        n : int
            The number of bins along the axis.

        Returns
        -------
        s, t : floats
            Parameters represe

        """
        start, end = map(self.mapper, range)
        s = (n % 1)/(end - start)
        t = -start * s
        return s, t
dataset/ETHPy150Open bokeh/datashader/datashader/core.py/Axis.compute_scale_and_translate/operator `-` -> `%`