draw graph : frame resize