title: Plotting with Matplotlib in Visual Studio using Python Tools for Visual Studio
body: <p>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. </p>
  
  <p>I am trying to create two plots, and show them in separate windows at the same time. A simple example is. </p>
  
  <pre><code>import matplotlib.pyplot as plt 
  plt.plot([1,2,3,4,5]) 
  plt.show() 
  plt.plot([2,2,2,2,2]) 
  plt.show()
  </code></pre>
  
  <p>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. </p>
  
  <p>Any help would be appreciated. Thanks in advance.</p>