Keep plotting within window