USA (US Army, 7,180 men under Scott) attacked Mexico (Mex Army, 15,000 men under Santa Anna) in Mexico. The CAA Database of Battles records 13 hours of fighting on a front of 1.8 km, a frontal attack against fortified defense, and that USA won. Losses: USA 863 (12%), Mexico 1,800 (12%).
This plan is generated from those figures. It shows the shape of the battle the database describes: the size and width of the armies, the plan of attack and the outcome. It does not show where the units actually stood.