Changing Matplotlib Backend Debug Mode

No one seems to have encountered this problem before: when running the following code lines in DEBUG mode, my python crashes . I am using python 2.7 with PyCharm 2016.3.

import matplotlib
matplotlib.use("qt4agg")
from matplotlib import pyplot as plt

      

If I work in stages it works. But if I set a breakpoint after this block, matplotlib.use () and import pyplot seem to hit each other. Does anyone know the problem?

+3


source to share


1 answer


So I was finally able to figure out: the solution is to disable the "PyQt compatible" option under Python Debugger in the PyCharm project settings. This option appears to be causing the stated problems when using pyqt and debug mode.



0


source







All Articles