USA (US Army, 8,500 men under Scott) attacked Mexico (Mex Army, 12,000 men under Santa Anna) in Mexico. The CAA Database of Battles records 12 hours of fighting on a front of 2.4 km, a frontal attack against prepared defense, and that USA won. Losses: USA 431 (5%), Mexico 4,000 (33%).
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.