I have already solved my problem. I found that if the function executed when comes the EVENT_VAL_CHANGED events of GRAPH, the cursor can't snap to the plot. I let the function executed after receiving the EVENT_COMMIT events of GRAPH, everything is OK !