plotresiduals needs to respect autorefresh