08 2020 档案

python 为直方图绘制拟合曲线
摘要:def normfun(self, x, mu, sigma): """ 正态分布的概率密度函数 :param x: 数据集中的某一具体测量值 :param mu: 数据集的平均值,反映测量值分布的集中趋势 :param sigma: 数据集的标准差,反映测量值分布的分散程度 :return: "" 阅读全文

posted @ 2020-08-31 11:43 闹不机米 阅读(5494) 评论(0) 推荐(0) 编辑

python 实现tar文件压缩解压
摘要:压缩文件 import tarfile import os def tar(fname): t = tarfile.open(fname + ".tar.gz", "w:gz") for root, dir, files in os.walk(fname): print root, dir, fil 阅读全文

posted @ 2020-08-21 15:14 闹不机米 阅读(3082) 评论(0) 推荐(0) 编辑

python basemap画图去除图片的边边,把图片改为透明色
摘要:# 去除图片的边边ax = fig.add_axes([0.1, 0.1, 0.7, 0.7]) ax.axis('off') plt.gca().xaxis.set_major_locator(plt.NullLocator()) plt.gca().yaxis.set_major_locator 阅读全文

posted @ 2020-08-21 15:10 闹不机米 阅读(887) 评论(0) 推荐(0) 编辑

python 画直方图
摘要:# -*- coding: utf-8 -*- import matplotlib.pyplot as plt from datetime import datetime import open_file fig = plt.figure(figsize=(20, 10)) # 定义 x 轴数据 l 阅读全文

posted @ 2020-08-20 10:07 闹不机米 阅读(787) 评论(0) 推荐(0) 编辑

python 画散点图
摘要:# -*- coding: utf-8 -*- from datetime import datetime from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt import open_file # 把经纬度 阅读全文

posted @ 2020-08-19 18:30 闹不机米 阅读(628) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示