PITTSBURGH — Wandy Rodriguez faced the minimum while throwing seven innings of 1-hit ball to outpitch Tim Hudson help the Pittsburgh Pirates beat the Atlanta Braves, 6-0, on Friday.

Hudson came up short in his first attempt at win No. 200.

Pedro Alvarez homered for the second consecutive game and Russell Martin, Neil Walker and Travis Snider each reached base three times for Pittsburgh, which has won seven of its past 10 after a 1-5 start to the season.

Scratched from his most recent scheduled start after leaving his previous outing in the third inning because of a strained hamstring, Rodriguez (2-0) allowed only Jason Heyward’s one-out single in the fourth. Justin Upton followed by grounding into a double play.

Rodriguez struck out five without a walk.

Mark Melancon pitched a perfect eighth and Vin Mazzaro allowed Andrelton Simmons’ leadoff single in the ninth before finishing off the shutout, Pittsburgh’s third this season.

The Braves (13-3) have not scored in any of their three losses this season.

The notoriously streaky Alvarez went homerless in his first 14 games before taking Julio Teheran deep in the series opener Thursday.

Friday’s second-inning shot with Neil Walker aboard cleared the section of seats that sit above the 21-foot wall in right field.

Later in the inning, Jose Tabata doubled in Russell Martin.

Hudson was chased after allowing the first four batters of the fifth inning to reach. The final hitter he faced, Garrett Jones, lined a single down the left-field line with the bases loaded, driving in Jose Tabata and Snider.

Snider went 2 for 3 to extend his hitting streak to seven games.

Notes: Braves OF B.J. Upton was ejected by home plate umpire Sam Holbrook after a called third strike call in the seventh inning. ... Atlanta is 13-0 when it hits a home run and 0-3 when it does not. ... Braves LHP Luis Avilan threw a bullpen session Friday afternoon after not pitching since sustaining a left hamstring injury Tuesday. He remains day-to-day. ... The Pirates will donate the proceeds from Saturday’s in-park 50/50 raffle to OneFundBoston.org. ... Former Pirates starter Paul Maholm will face Pittsburgh on Saturday for the fourth time since leaving as a free agent after the 2011 season. His 2.35 ERA since last season’s all-star break is the sixth-best in the majors. His opponent will be RHP James McDonald, who allowed eight runs on eight hits in his previous outing Monday.