python畫散點圖和折線圖

weixin_34107955發表於2017-08-31

# selected = selected.tolist()

# plt.figure()

# plt.plot(c_react, len_c_react,c='darkblue',alpha=0.25,marker='o')

# plt.plot(i_react, len_i_react,c='darkred', alpha=0.75, marker='x')

# plt.plot(r_react, len_r_react,c='green', alpha=0.25, marker='o')

# plt.show()

fig,ax = plt.subplots()

ax.scatter(c_react,len_c_react,c='darkblue',alpha=0.25,marker='^',label='criterion')

ax.scatter(i_react,len_i_react,c='darkred',alpha=0.75,marker='x',label='irrelated')

ax.scatter(r_react,len_r_react,c='green',alpha=0.25,marker='o',label='related')

ax.legend()

plt.show()

相關文章