Anderson settled in after giving up two early solo homers and the Brewers rallied for a 5-2 victory over the Cincinnati Reds on Monday night.
"This is the big leagues, guys are going to make you pay for mistakes and they really did for those two pitches," said Anderson, who allowed multiple homers for the ninth time this season. "Homers have been kind of a big thing for me, a lot of solo homers. The first inning has been a big thing for me this year, but today I felt like I kind of found something as the game went on."
Shaw's two-run homer off Homer Bailey put the Brewers up 3-2 in the sixth. Jesus Aguilar singled to open the inning and Shaw followed with his 25th homer, lining an 0-2 pitch into the right-field seats.
"I was trying to throw a fastball up and in (on the homer), the same pitch he broke his bat on two pitches before that," Bailey said.
Anderson, pitching on seven days' rest, entered tied for the National League lead with 24 homers allowed and gave up second-inning solo shots to Eugenio Suarez and Phillip Ervin as the Reds took a 2-0 lead. Anderson then retired the final 14 hitters he faced.
"When Chase is leaving some balls in the middle, he's getting hurt on them, for sure," Brewers manager Craig Counsell said. "But, I thought he made some really quality pitches after that. He had better fastball command today, curve ball was better today. He put it together after that really well."
Bailey (1-11) kept the Brewers off the scoreboard until Yelich's 20th homer, a one-out solo shot in the fifth that made it 2-1. Bailey, who has not won since May 12, allowed three runs on five hits in six innings, striking out five and walking one.
"He has not been fortunate, that's for sure," Reds manager Jim Riggleman said. "The main thing is he is throwing the ball well and getting us deep in the game and not wearing out the bullpen. He's doing his part there."
Suarez opened the second with his 28th homer, sending a 1-1 pitch over the wall in left-center. One out later, Ervin drove a 1-0 pitch to left for his fourth.
Anderson now has allowed 26 homers in 135 1/3 innings, after giving up just 14 in 141 1/3 innings last season.
"He gave up those two homers in the second, but outside of that, he pitched really well," Shaw said. "His curveball was really good today."
UPON FURTHER REVIEW
Lorenzo Cain beat out an infield single to short with one out in the seventh The Reds challenged, but the call was upheld after a review estimated at 1 minute, 40 seconds.
Reds: OF Scott Schebler (right shoulder), who just completed a seven-game rehab stint at Triple-A Louisville, including six as DH, began another rehab assignment Monday at Double-A Pensacola.
Brewers: RHP Matt Albers, on the 10-day DL (left hamstring strain), is back with team and could be activated soon. He pitched three scoreless rehab outings with Double-A Biloxi, including one Saturday. "He's ready. We weren't planning on activating him today unless there was a need," manager Craig Counsell said. "We'll kind of go with that for the next couple of days, depending on need. ... RHP Joakim Soria, also on the DL (right groin), will pitch off the mound on Tuesday and face hitters.
Reds: RHP Sal Romano (7-10, 5.31 ERA) is 0-5 in five career starts against the Brewers, including 0-3 at Miller Park. Romano lasted just 1 2/3 innings in his last start, allowing six runs on seven hits in an 8-1 loss to Cleveland.
Brewers: RHP Junior Guerra (6-8, 3.73) makes his 24th start. In his last outing, allowed seven runs -- six earned -- on nine hits in 3 2/3 innings in an 8-4 loss to the Cubs. He is 0-1 with a 5.60 ERA in three starts in August.
More AP baseball: https://apnews.com/tag/MLBbaseball and https://twitter.com/AP-Sports .
MLB All-Stars pick up first win over Japan
Yadier Molina and J.T. Realmuto both homered Sunday to lead the MLB All-Stars to a 7-3 win over Japan for their first win of the six-game exhibition series.
NL Central offseason preview: Can the Brewers do it again?
Milwaukee seems due for some regression, the Cubs don't figure to throw money at their problems and the Cardinals might be looking to add some star power.
Nobody's more valuable than Mike Trout, but will he be MVP?
Whether or not the Angels superstar wins his third MVP award, his impact on the game transcends any trophy.
Justin Verlander, Kate Upton announce birth of daughter
Justin Verlander and wife Kate Upton welcomed a daughter, Genevieve Upton Verlander, on Wednesday.
Red Sox broadcaster Jerry Remy says he's cancer-free
Boston Red Sox television analyst Jerry Remy tweeted Friday that he is currently cancer-free after being diagnosed with the disease again in August.
Report: Nats ownership struck down Bryce Harper-to-Astros deal at deadline
The proposed deal would have sent three minor league Astros prospects to the Nationals in exchange for Bryce Harper, The Athletic reported Saturday.