from numpy import *
from sklearn.datasets import load_iris
from sklearn import tree
import matplotlib.pyplot as plt
iris=load_iris()
x=iris.data
y=iris.target
plt.scatter(x[:50,0],x[:50,1],c='r',s=5,label='Seatosa')
plt.scatter(x[50:100,0],x[50:100,1],c='black',s=5,label='Versicolour')
plt.scatter(x[100:150,0],x[100:150,1],c='y',s=5,label='Virginica')
plt.ylabel("Sepal.Width")
plt.xlabel('Sepal.Length')
plt.legend()
plt.show()
plt.scatter(x[:50,2],x[:50,3],c='r',s=5,label='Seatosa')
plt.scatter(x[50:100,2],x[50:100,3],c='black',s=5,label='Versicolour')
plt.scatter(x[100:150,2],x[100:150,3],c='y',s=5,label='Virginica')
plt.ylabel("Petal.Width")
plt.xlabel('Petal.Length')
plt.legend()
plt.show()