i am plotting several lines together in a plot. i’d like some of the lines to be “behind” the other ones – i.e., when the two lines intersect, i want the most recently plotted line to be on top of the previously plotted lines.
in general, this is true but it seems to be violated by plt.axhline. for example if i have
plt.axhline(…plot horizontal line…, color=‘red’)
plt.plot(…plot 1st line…)
plt.plot(…plot 2nd line…)
then the horizontal line appears ON TOP of the other two lines – i want it to be the opposite, i want the horizontal line to be in the background. how can i do this?