def AffineRotate(theta,new_size,center=None,interpolate=BILINEAR):
    matrix = array([[math.cos(theta),-math.sin(theta),0],[math.sin(theta),math.cos(theta),0],[0,0,1]],'d')

    rotate = AffineTransform(matrix,new_size,interpolate)
    if center == None:
        return rotate
    else:
        return AffineTranslate(center.X(),center.Y(),new_size)*rotate*AffineTranslate(-center.X(),-center.Y(),new_size)
Returns available subcategories choices list.
dataset/ETHPy150Open bolme/pyvision/src/pyvision/types/Affine.py/AffineRotate--crossover with--dataset/ETHPy150Open idlesign/django-sitecats/sitecats/toolbox.py/CategoryList.get_choices