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?
Specify how you want images to be shown in PyCharm. Optionally, specify an external editor for working with images. Use this area to specify the settings according to which images should be displayed in PyCharm. Select this checkbox to have a grid displayed when reviewing image files.
By default, imshow normalizes the data to its min and max. You can control this with either the vmin and vmax arguments or with the norm argument (if you want a non-linear scaling).
Click the Python Interpreter tab within your project tab. Click the small + symbol to add a new library to the project. Now type in the library to be installed, in your example "matplotlib" without quotes, and click Install Package . Wait for the installation to terminate and close all popup windows.
The code might be helpful:
import matplotlib.pyplot as plt
plt.imshow(im)
plt.show()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With