plot update with value

improve the update method , without clicking the togglebutton,
adding another version of resize (proportional)