A high pressure optical cell is designed for measurement of the volume phase transition of a polymer gel (Nisopropyl-acrylamide gel) induced by hydrostatic pressure. The volume of the gel is measured by a microscope, and the image during the phase transition is taken by a camera or a CCD camera.