Photoabsorption is a fundamental process that leads to changes in the electron density in matter. Here, the authors show a direct measurement of the distribution of electron density when a cyclohexadine molecule is excited by pulsed UV radiation and probed by a time delayed X-ray pulse generated at LCLS.