Nearly 5,000 firefighters were battling the blaze, but in another sign of progress some were expected to be released to go home, said Daniel Berlant, spokesman for the California Department of Forestry and Fire Protection.
"We continue to gain the upper hand, but there's still a lot of work to be done," he said.
The 2-week-old blaze burning in the Sierra Nevada northeast of Fresno has scorched 315 square miles of brush, oaks and pine, making it the largest U.S. wildfire to date this year and the fifth largest wildfire in modern California records. Containment was estimated at 32 percent.
Evacuation advisories were lifted Thursday in Tuolumne City, Soulsbyville and Willow Springs but remained in place for other communities, and evacuations were still mandatory along the fire's southeastern edge.
About 75 square miles of the fire are inside Yosemite but at some distance from the national park's major attractions, including glacially carved Yosemite Valley's granite monoliths and towering waterfalls.
Park officials expect about 3,000 cars a day to pass through gates during the long Labor Day holiday weekend instead of the nearly 5,000 that might typically show. The fire has caused some people to cancel reservations in the park but those vacancies have been quickly filled, officials said.
"Valley campgrounds are still full and skies in Yosemite Valley are crystal clear," said park spokeswoman Kari Cobb.
A 4-mile stretch of State Route 120, one of three western entrances into Yosemite, remained closed, hurting tourism-dependent businesses in communities along the route.
Costs reached $47 million, including firefighters from 41 states and the District of Columbia and significant aviation resources including helicopters, a DC-10 jumbo jet and military aircraft equipped with the Modular Airborne FireFighting System. Aircraft have dropped 1.7 million gallons of retardant and 1.4 million gallons of water.
The fire started Aug. 17 and its cause remains under investigation. It is expected to keep burning long after it is fully contained, and recovery will be extensive. Some 7,000 damaged trees next to power lines will need to be removed by utility crews and 800 guardrail posts will need to be replaced on Route 120, a fire fact sheet said.