PyCharm 2017.1 Help

Matplotlib Support

In this section:

Prerequisite

To start using Matplotlib, make sure that the package is properly installed in your project interpreter.

To learn how to install this package in PyCharm, refer to the section Installing, Uninstalling and Upgrading Packages.

Matplotlib support

Matplotlib is the graphical package that has the interactive mode. In this mode, a graph opens in its own window, allowing you to resize, zoom in and out, etc.

In PyCharm, the interactive mode is enabled by default. When starting an interactive console, one can import Matplotlib, and build graphs as required. So doing, when Matplotlib is imported, PyCharm shows a message that interactive mode is on:

/help/img/idea/2017.1/py_matplotlib.png

In PyCharm, on invoking the function plot() for each graph, this graph opens in its own pop-up window interactively:

/help/img/idea/2017.1/py_matplotlib1.png

So doing, the console is accessible for further inputs:

/help/img/idea/2017.1/py_matplotlib2.png

Matplotlib in the Debug tool window console

Matplotlib is also available in the Console of the Debug tool window.

With Matplotlib imported, when stopping on a breakpoint, an interactive pop-up window with the graph being debugged appears:

/help/img/idea/2017.1/py_matplotlib3.png

See Also

Last modified: 26 July 2017