
可视化
circle_yy
努力成为大神的小菜鸡
展开
-
matplotlib绘制直线
效果如下: import matplotlib # matplotlib.use('TkAgg') import matplotlib.pyplot as plt import seaborn as sns %matplotlib inline sns.set() x = range(0,200) y = range(20,220) plt.figure(figsize=(6.5, 5.4)) tick = list(range(0,200)) #设置坐标轴名称 plt.xlabel('原创 2020-08-11 17:07:38 · 1538 阅读 · 0 评论 -
matplotlib绘制多个子图
import matplotlib.pyplot as plt pd.set_option('display.max_column',30) # import statsmodels.api as sm import matplotlib.pyplot as plt sns.set() from pylab import rcParams ##matplotlib rcParams['figur...原创 2020-01-10 17:40:51 · 208 阅读 · 0 评论 -
python绘制柱状图
fig, axes = plt.subplots(2,1) data = pd.Series(np.random.rand(16), index = list('abcdefghijklmnop')) data.plot(kind='bar', ax=axes[0], color='k', alpha=0.7) data.plot(kind='bar', ax=axes[1], color='k'...原创 2019-12-12 21:17:44 · 912 阅读 · 0 评论 -
python中matplotlib绘制折线图(一)
import matplotlib.pyplot as plt print(result1) y = result1 x = [2,3,4] #设置坐标轴名称 plt.xlabel('the value of k') plt.ylabel('Silhouette Coefficient') #设置坐标轴刻度 plt.xticks([2,3,4]) # plt.title("Silhouette C...原创 2019-07-31 21:43:41 · 343 阅读 · 0 评论 -
Seaborn绘制一维变量的数据分布
f, axes = plt.subplots(1,2,figsize=(10, 5), sharex=False, sharey = False) sns.set(style="white", palette="muted", color_codes=True)#设置 sns.distplot(temp_lat.values,label = 'latitude',color="m",bins =...原创 2019-09-18 15:02:12 · 617 阅读 · 0 评论