pyGraph: change mode