The invention relates to a novel cell graphing method, and concretely relates to a cell graphing method based on optically-induced dielectrophoresis (ODEP) technology. The method utilizes the optically-induced dielectrophoresis (ODEP) technology to form pattern-controllable hydrogel on hydrogenated amorphous silicon and is used to control cell growth. A non-uniform electric field induced by a light spot is capable of inducing motion of a micrometer particle and motion of a solution in a solution, and generating the phenomena of dielectrophoresis and an electroosmotic flow. The micropattern preparation method does not need a physical template, and a needed PEGDA hydrogel micropattern can be obtained by designing the light spot directly according to a demanded shape, and the size and the position of the PEGDA hydrogel micropattern can be dynamically controlled. By using the method, the growth position and the growth pattern of cells can be controlled, and influence of microscopic environment on cell behavior can be researched by changing the shape and the size of the PEGDA hydrogel micropattern for adjusting the shape of the cell.