08 2020 档案

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

posted @ 2020-08-31 11:43 闹不机米 阅读(5600) 评论(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 闹不机米 阅读(3090) 评论(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 闹不机米 阅读(910) 评论(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 闹不机米 阅读(824) 评论(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 闹不机米 阅读(669) 评论(0) 推荐(0)

导航