I am wondering if there is a way to control which graph is on top of other graphs if you are making several graphs on the same axis. Example:

As you can see, the green series is on top of the blue series, and both series are on top of the black dots (which I did with the scatter). I would like the black dots to be on top of both lines (lines).
I did the above code first
plt.plot(series1_x, series1_y) plt.plot(series2_x, series2_y) plt.scatter(series2_x, series2_y)
Then I tried the following
fig = plt.figure() ax1 = fig.add_subplot(111) ax1.plot(series1_x, series1_y) ax2 = fig.add_subplot(111) ax2.plot(series2_x, series2_y) ax3 = fig.add_subplot(111) ax3.scatter(series2_x, series2_y)
And some variations of this, but not luck.
Switching around plot functions affects which graph is on top, but no matter where I put the scatter function, the lines are on top of the dots.
Note:
I am using Python 3.5 on Windows 10 (this example), but mostly Python 3.4 on Ubuntu.
NOTE 2:
I know this may seem like a trivial problem, but I have a case where the series on top of the dots is so dense that the color of the dots becomes unclear, and in these cases I need my readers to clearly see which dots are what color , therefore, why I need points that should be on top.
python matplotlib plot
Konrad kapp
source share