When I print this part of the function it prints many incomplete plots, before finally printing the finished plot.
plt.plot(temp1b, growth1b, \'pink\', la