Axes dynamically change when data changes