A comparison is made between the modeled and experimentally determined microscopic images of a type I Bragg grating produced in the core of an optical fiber using the ultraviolet irradiation of a phase mask. The simulated image of the refractive-index distribution, which assumes a linear relationship between the irradiation intensity and the refractive-index change, is in good agreement with the measured image.