반응형
Notice
Recent Posts
Recent Comments
Link
관리 메뉴

bro's coding

matplotlib.scatter plot 본문

[IT]/python.matplotlib

matplotlib.scatter plot

givemebro 2020. 3. 27. 00:11
반응형
import matplotlib.pyplot as plt

plt.scatter(iris[:,2],iris[:,3],c=iris[:,4],s=iris[:,1]+100,alpha=0.2)

#우측에 bar표시
plt.colorbar()

plt.title('SepalLength Vs SepalWidth')
plt.xlabel('SepalLength')
plt.ylabel('SepalWidth')

반응형
Comments