The evolution of stored ferroelectric polarization in PZT thin film capacitors was imaged using synchrotron x-ray microdiffraction with a submicron-diameter focused incident x-ray beam. To form the capacitors, an epitaxial Pb(Zr,Ti)O3 (PZT) thin film was deposited on an epitaxially-grown conductive SrRuO3 (SRO) bottom electrode on a SrTiO3 (STO) (001) substrate. Polycrystalline SRO or Pt top electrodes were prepared by sputter deposition through a shadow mask and subsequent annealing. The intensity of x-ray reflections from the PZT film depended on the local ferroelectric polarization. With 10 keV x-rays, regions of opposite polarization differed in intensity by 26% in our PZT capacitor with an SRO top electrode. Devices with SRO electrodes showed just a 25% decrease in the remnant polarization after 107 switching cycles. In devices with Pt top electrodes, however, the switchable polarization decreased a by 70% after only 5×104 cycles.