change the plot limits to keep in bounds