matplotlib.pyplot 画图相关
本文主要介绍使用matplotlib.pyplot进行简单图像绘制:
matplotlib.pyplot是python中的绘图模块
from sklearn import datasets
import matplotlib.pyplot as plt
import pandas as pd
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
scikit_iris = datasets.load_iris()
iris = pd.DataFrame(data=np.c_[scikit_iris['data'],scikit_iris['target']],columns=np.append(scikit_iris.feature_names,['y']))
x = iris.index.values
y = iris[