#PYTHON#Pycharm中无法显示图形化matplotlib问题

如果setting-interpreter中搜索安装skimage失败
使用terminal安装pip install --proxy http://127.0.0.1:1080 scikit-image
由于网络问题,我附加使用了代理设置,如不需要,可把其删去

安装完毕后,不要在ipython的控制面板内进行输入
要在py的文件中进行run,后会显示在IDE的右侧部分
如图


#PYTHON#Pycharm中无法显示图形化matplotlib问题<matplotlib.figure.Figure at 0x1ad8a2b0>_第1张图片
图片.png

附赠官网http://scikit-image.org/的入门实例

__author='Xiao'
import numpy as np
from matplotlib import pyplot as plt
from skimage import data
random_image = np.random.random([500, 500])
print(random_image)
plt.imshow(random_image, cmap='gray')
plt.colorbar()
plt.show()

你可能感兴趣的:(#PYTHON#Pycharm中无法显示图形化matplotlib问题)