An investigator uses plotting compasses to map the magnetic field surrounding two stationary vertical bar magnets, labeled Magnet X (on top) and Magnet Y (on bottom).
The diagram below shows the orientation of the plotting compasses positioned at key locations around the ends of the two magnets.

Identify the magnetic poles at the ends of the magnets facing each other across the gap.
Pole at the bottom end of Magnet X:
Pole at the top end of Magnet Y: