Its natural habitats are moist savanna, swamps, freshwater marshes, intermittent freshwater marshes, plantations, rural gardens, and heavily degraded former forest.
They are generally found in savannas and woodlands above the dry coastal plain, but below the 1300 meters (4200 ft) elevation where colder winters prevail.