When producing a UV-Vis spectrum, the phase of the compound is very important. If the solution is in the gaseous phase, peaks will form since the compound is able to transition freely (electrically, vibrationally, and rotationally). In a nonpolar solution, the electronic structure is the only one remaining which produces less peaks with minimal resolution. In a polar solution, all characteristic is lost