When using MacOSX backend, matplotlib figures are always on top.


This issue is essentially the same as mentioned here. That is, a matplotlib figure window stays on top of ALL applications. I cannot minimize the figure windows either; they animate in and out of the Mac OSX dock and come back to where they were originally. Right now I am resolving it temporarily by using the TkAgg backend as follows:

import matplotlib
import matplotlib.pyplot as plt

But the quality of graphs rendered is of lower quality than the MacOSX backend. Is there a way to use the MacOSX backend but not have the figure windows behave this way?

I am using PyCharm 2017.3.2 on a MacBook Pro running macOSX Sierra.


I have the exact same problem.

I am using 2017.3.3 version of PyCharm.


I have the same exact problem. In my case switching to TkAgg backend does not solve the issue. Please fix this.


I have exactly the same problem. In addition, if I run a program in IPython outside PyCahrm, I do not have this problem.

The problem described makes it inconvenient to use PyCharm with matplotlib since there are quiet a few scenarios in which I do not want to close a figure window immediately after it pops up.

Additional info that might be useful for reproducing the problem:

PyCharm 2018.1.2 (Community Edition)
Build #PC-181.4668.75, built on April 25, 2018
JRE: 1.8.0_152-release-1136-b29 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

macOS High Sierra 10.13.4

Python 3.6.5 (installed using Homebrew)
IPython 6.3.1
matplotlib 2.2.2




Please sign in to leave a comment.