Zooming in on a part of a plot with a large range in y-values while using the linestyle "--" is very slow. The following minimal working example hangs at the plt.show() line. import numpy as np import ...