二、demos from sklearn.datasets import load_iris import matplotlib.pyplot as plt import numpy as np iris = load_iris() data = iris.data target = iris.target print(data[:, 0]) print(target) num_bins = 30 plt.hist(data[:, 0], num_bins,) # plt.axis([-1, 1, -1, 1]) plt.show()
Python hist平面直方图
最新推荐文章于 2024-01-31 11:25:40 发布