

def compute_index(self, st, n):
    'Compute a 1D array representing the axis index.\n\n        Parameters\n        ----------\n        st : tuple\n            A tuple of ``(scale, translate)`` parameters.\n        n : int\n            The number of bins along the dimension.\n\n        Returns\n        -------\n        index : ndarray\n        '
    px = np.arange(n)
    (s, t) = st
    return self.inverse_mapper(((px - t) / self))

dataset/ETHPy150Open bokeh/datashader/datashader/core.py Axis.compute_index/VarMisuse@45/145 `s`->`self`