I am new to using PTVS for my Python code. I previously used Spyder as it came along with the Anaconda distribution. Here is the issue I am having.
I am trying to create two plots, and show them in separate windows at the same time. A simple example is.
import matplotlib.pyplot as plt
plt.plot([1,2,3,4,5])
plt.show()
plt.plot([2,2,2,2,2])
plt.show()
But the second plot does not show up unless I close the first plot. Similarly for a larger script, the rest of the code chunk after plt.show() does not execute if I don't close the plot. I tried executing without debugging and it does not work. However, when I run the same code in Ipython interactive window, all the code executes and I can see both plots as inline, yet it is not what I want. I want to all the code to run creating as many plots as needed in different windows without me interrupting like closing the plot for the rest of the code to run. I can still do it in Spyder, but I want to switch to Visual Studio completely and this issue is bugging me.
Any help would be appreciated. Thanks in advance.
#ion
method, extremely useful. Thank you. – Pfister