def xy_ranges_grid(self):
    """Get x and y ranges and x, y grid.

    :returns: x and y ranges and x,y grid
    """
    x_ranges = self.x_bin_edges()
    y_ranges = self.y_bin_edges()
    grid = self.bin_entries()
    return x_ranges, y_ranges, grid