2021年7月15日

用来正常显示中文标签的代码

摘要: plt.rcParams['font.sans-serif'] = ['SIMHEI']plt.rcParams['axes.unicode_minus'] = False 阅读全文

posted @ 2021-07-15 10:40 Mint-Tremor 阅读(93) 评论(0) 推荐(0) 编辑

2021年7月14日

jupyter notebook快捷键

摘要: 阅读全文

posted @ 2021-07-14 11:11 Mint-Tremor 阅读(25) 评论(0) 推荐(0) 编辑

%matplotlib inline的作用

摘要: 用在Jupyter notebook中具体作用是当你调用matplotlib.pyplot的绘图函数plot()进行绘图的时候,或者生成一个figure画布的时候,可以直接在你的python console里面生成图像。效果如下: 不加%matplotlib inline 加上%matplotlib 阅读全文

posted @ 2021-07-14 10:58 Mint-Tremor 阅读(158) 评论(0) 推荐(0) 编辑

2020年11月3日

直方图和密度图

摘要: 1.Set up the notebook 2.Load and examine the data 3.Histograms a= chooses the column we'd like to plot (in this case, we chose 'Petal Length (cm)'). k 阅读全文

posted @ 2020-11-03 17:01 Mint-Tremor 阅读(221) 评论(0) 推荐(0) 编辑

散点图

摘要: 1.Set up the notebook 2.Load and examine the data 3.Scatter plots To double-check the strength of this relationship, you might like to add a regressio 阅读全文

posted @ 2020-11-03 16:46 Mint-Tremor 阅读(62) 评论(0) 推荐(0) 编辑

条形图和热图

摘要: 1.Set up the notebook 2.Load the data 3.Examine the data 4.Bar chart sns.barplot - This tells the notebook that we want to create a bar chart. x=fligh 阅读全文

posted @ 2020-11-03 16:30 Mint-Tremor 阅读(89) 评论(0) 推荐(0) 编辑

折线图

摘要: 1.Set up the notebook 2.Load the data 3.Examine the data 4.Plot the data sns.lineplot tells the notebook that we want to create a line chart. data=spo 阅读全文

posted @ 2020-11-03 16:19 Mint-Tremor 阅读(63) 评论(0) 推荐(0) 编辑

2020年10月19日

电脑快捷键

摘要: 截屏组合键 Win+Shift+S 阅读全文

posted @ 2020-10-19 11:47 Mint-Tremor 阅读(49) 评论(0) 推荐(0) 编辑

2020年10月14日

round()函数

摘要: 描述 round() 方法返回浮点数x的四舍五入值。 语法 以下是 round() 方法的语法: round( x [, n] ) 参数 x -- 数值表达式。 n -- 数值表达式,表示从小数点位数。 返回值 返回浮点数x的四舍五入值。 实例 以下展示了使用 round() 方法的实例: prin 阅读全文

posted @ 2020-10-14 16:25 Mint-Tremor 阅读(315) 评论(0) 推荐(0) 编辑

plt.scatter各参数详解

摘要: 1、scatter函数原型 2、其中散点的形状参数marker如下: 3、其中颜色参数c如下: 4、基本的使用方法如下: #导入必要的模块 import numpy as np import matplotlib.pyplot as plt #产生测试数据 x = np.arange(1,10) y 阅读全文

posted @ 2020-10-14 16:16 Mint-Tremor 阅读(1151) 评论(0) 推荐(0) 编辑

导航