def index2pixel(filtration, index):
    """
    Convert an index to x,y pixel data.

    Args:
        filtration: a Filtration object
        index: an index into filtration.cells

    Return:
        tuple: (x,y,degree)
    """
    cell = filtration.cells[index]
    return (cell.x, cell.y)