We report on the interplay between the structural and the magnetic properties of different size dots patterned in two structurally different CoPt thin films with L10 order. The significant changes observed in the magnetic domain configuration and coercive field between the samples are interpreted in the light of crystalline structure. The magnetic hysteresis curves measured for single/several dots are compared to those of the dot assembly and discussed in view of structure and edge defects. In particular, the concentration fluctuations are found to enlarge the magnetic switching field distribution despite the presence of a single variant of the L10 phase. In turn, the distribution is narrow in samples that are homogeneous in concentration and contain well defined magnetization nucleation sites, namely, the x and y variants of the L10 phase formed during annealing.