The process in which the anatomical structures of the anal fin are generated and organized. An anal fin is an unpaired medial fin on the ventral aspect near the caudal end of a fish, which provides lateral stability while swimming.