I have some troubles while drawing two figures at the same time, not shown in a single plot. But according to the documentation, I wrote the code and only the figure one sho
You should call plt.show() only at the end after creating all the plots.
plt.show()