Specifically for Python there is already a language wrapper, see HypnoLog-Python. As HypnoLog use the browser to display the plots, you can easily use any other tools avialble on the web to display plots or create your own. It will display the plots in a web browser, at the same page one after the other (like a log). HypnoLog can help you plot any data from Python or any other language. The problems I find with Matplotlib or IPython and similar tools are that they usually very restricted to certain environment (like in your case, the IDE).Īlso those tools usually hard to control to your own display requirements (or require much time). Python Tools for Visual Studio (PTVS) is a plug-in for Visual Studio which supports programming with the Python language. This answer is not helping you directly with Matplotlib but suggesting an alternative way to solve same issues. Download Python Tools for Visual Studio for free.
I wanted to see plots one after the other while debugging, without dealing with closing windows or specific environment. I can suggest you an Open source tool I been working on for similar reasons. I can still do it in Spyder, but I want to switch to Visual Studio completely and this issue is bugging me.Īny help would be appreciated. Many of my colleagues believe that some languages just have the right feel to them.
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 do the majority of my software development using the C language, but I also use C, C++, Perl, JavaScript, and others, including Python. 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. Go File New Django App, then make a new Python Virtual Environment from the Solution Explorer, and watch Visual Studio freaking installed pip for you (the Python package manager). I tried executing without debugging and it does not work. Maybe you're a Django (one of Python's Web Frameworks) web developer, you can use VS to develop your app. Similarly for a larger script, the rest of the code chunk after plt.show() does not execute if I don't close the plot. PTVS 2.2.6 is the latest available version for Visual.
We are no longer actively developing these versions, but if you are unable to upgrade to Visual Studio 2017 yet, you can use these older installers to get Python support. import matplotlib.pyplot as pltīut the second plot does not show up unless I close the first plot. Prior to Visual Studio 2017, Python support was released as a standalone extension. I am trying to create two plots, and show them in separate windows at the same time. I previously used Spyder as it came along with the Anaconda distribution. I am new to using PTVS for my Python code.