Resize graph