Update y-limits of plot window
Sometimes it may be required to update the y-limits of the plot window. This can be done by a call to relim https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.relim.html#matplotlib.axes.Axes.relim
However, it probably makes sense to not do this every time a curve is added/removed, but only when wanted. Hence, my suggestion is a button for this (ideally in the Matplotlib toolbar... see https://matplotlib.org/stable/gallery/user_interfaces/toolmanager_sgskip.html ).