jupyter notebook 执行结果与pythonIDE执行不一样

来源:互联网 发布:网络语音对讲系统 编辑:程序博客网 时间:2024/06/17 04:10

以下代码在upyter notebook 执行结果与pythonIDE执行不一样,python版本都是2.7.13 

import matplotlib.pyplot as plt
yvals1=[101000,111000,121000,131000,138000,143000,148000,153000,158000]
xvals=['500','600','700','800','900','1000','1100','1200','1300']
fig,ax=plt.subplots(figsize=(10,12))
plt1=ax.scatter(xvals,yvals1,c='#d82730',alpha=0.5)
plt.show()

执行现象:




原创粉丝点击