PyCharm 2016.2 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:

py_matplotlib

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

py_matplotlib1

So doing, the console is accessible for further inputs:

py_matplotlib2

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:

py_matplotlib3

See Also

Last modified: 29 August 2016