gerrymandering
Apportioning legislative districts in a way calculated to give an undue advantage to a political party, by concentrating its members or separating those of another party from one another; implies lines drawn in an otherwise illogical way.