7

I'm using Pycharm IDE for Ipython and like it a lot. However, recently I'm having trouble with the matplotlib pyplot imshow function. Sometimes it works properly and displays an image but other times it just hangs (the cell is not executed, its labeled by the asterisk). You can execute additional cells after this with the image never being displayed. Im on OS X mavericks, using pycharm 5, latest ipython and matplotlib versions, enthought canopy python 2.7.. anyone experiencing something similar and worked out a solution?

mistakeNot
  • 743
  • 2
  • 10
  • 24

2 Answers2

23

The code might be helpful:

import matplotlib.pyplot as plt
plt.imshow(im)
plt.show()
phd
  • 82,685
  • 13
  • 120
  • 165
zheng
  • 231
  • 2
  • 3
5

Use

import matplotlib.pyplot as plt
plt.imshow(im)
plt.show()

and also use the "Scientific Mode " under the "View" menu. It will be shown in that panel.

Syed Amir Raza
  • 101
  • 1
  • 1