
基础
嗨,早啊!
这个作者很懒,什么都没留下…
展开
-
python当中的matplotlib 样式的设计
设置坐标轴的线框 import matplotlib.pyplot as plt ###设置坐标轴的粗细 ax=plt.gca();#获得坐标轴的句柄 ax.spines['bottom'].set_linewidth(2);###设置底部坐标轴的粗细 ax.spines['left'].set_linewidth(2);####设置左边坐标轴的粗细 ax.spines['right'].set_linewidth(2);###设置右边坐标轴的粗细 ax.spines['top'].set_linew原创 2022-04-21 09:58:42 · 2349 阅读 · 0 评论 -
离散数据求导
一、先导入函数库 import numpy as np import matplotlib.pyplot as plt from scipy import interpolate as inter 二、调用inter.splrep()自动求解函数关系,k为函数的最高次幂 xx = inter.splrep(T, Y, s=0, k=5) 二、xx为求解的函数关系,xxx为新的因变量取值集合,直接调用inter.splev求解,der为导数参数,默认为0即求原函数,为1即求一阶原创 2022-04-08 09:28:48 · 2776 阅读 · 1 评论 -
画图显示汉字
plt.rcParams['font.sans-serif'] = ['SimHei'] plt.rcParams['axes.unicode_minus'] = False原创 2022-04-08 09:05:59 · 119 阅读 · 0 评论 -
excel
读取excel表格 写入excel表格原创 2022-03-17 10:38:46 · 354 阅读 · 0 评论