def reshape(data, status=None):
    """
    Reshape data for convenient plotting.
    """
    if data.shape[1] == 3:
        data = data[data[:,2] == status][:,:2]
    elif data.shape == (0,):
        return data.reshape(2, -1)
    return data.T[::-1]