Matplotlib support failed

Answered

code:

import numpy as np
import matplotlib.pyplot as plt

x = np.arange(0, 1.01, 0.05)
U = np.hstack((2 * x[:10], 2 - 2 * x[10:]))

plt.plot(x, U)
plt.show()

result:

however, it runs correctly in sublime text 3.

8 comments

I rollback my matplotlib to 2.1.2 from 2.2 and all OK

1

Confirmed, rolling back to 2.1.2 fixes the issue.

0

Hi! I am sorry for the inconvenience! Could you please check 2018.1 RC build https://www.jetbrains.com/pycharm/nextversion/? This problem should be obsolete there.

1

Hi, I update to 2018.1, with matplotlib 2.2

problem still exist:

 

PyCharm 2018.1 (Community Edition)
Build #PC-181.4203.547, built on March 26, 2018
JRE: 1.8.0_152-release-1136-b20 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0



1

My bad, I thought it was PY-28836 but it looks like another matplotlib API change breaks interactive mode, we're looking into it, corresponding issue: PY-29260.

0

 I also had this issue and can confirm that rolling back fixed it.

0

Hi Willtesler! Could you please give 2018.1.2 version a try? The problem should be fixed or at least a proper error will be shown.

0

Looks fixed with 2018.1.3!   I didn't try 2018.1.2.  Thanks Pavel!  

0

Please sign in to leave a comment.