updating limits plotting