以下代码在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()
执行现象: