上一页 1 ··· 6 7 8 9 10 11 12 下一页

2020年8月31日

python 为直方图绘制拟合曲线

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

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

2020年8月21日

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 闹不机米 阅读(3065) 评论(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 闹不机米 阅读(856) 评论(0) 推荐(0) 编辑

2020年8月20日

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 闹不机米 阅读(773) 评论(0) 推荐(0) 编辑

2020年8月19日

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 闹不机米 阅读(614) 评论(0) 推荐(0) 编辑

2020年6月11日

python pip 阿里云内网安装地址

摘要: http://mirrors.cloud.aliyuncs.com/pypi/simple/ --trusted-host mirrors.cloud.aliyuncs.com 阅读全文

posted @ 2020-06-11 11:18 闹不机米 阅读(694) 评论(0) 推荐(0) 编辑

2020年6月8日

python matplotlib画图改为可写中文

摘要: 1. 安装好 matplotlib 包 2. 把 Microsoft Yahei Bold.ttf 微软雅黑字体文件放到 /usr/local/lib/python3.7/site-packages/matplotlib/mpl-data/fonts/ttf 这个目录下 3. 把 /usr/loca 阅读全文

posted @ 2020-06-08 10:49 闹不机米 阅读(431) 评论(0) 推荐(0) 编辑

2020年5月14日

win10 安装 basemap

摘要: 1. 下载安装包 https://www.lfd.uci.edu/~gohlke/pythonlibs/ 2. cd到下载目录 pip install basemap-1.1.0-cp36-cp36m-win_amd64.whl 阅读全文

posted @ 2020-05-14 22:16 闹不机米 阅读(249) 评论(0) 推荐(0) 编辑

Liunx 安装basemap

摘要: 1. 下载 basemap 包 https://github.com/matplotlib/basemap/releases 2. 解压 tar -zxvf basemap-1.2.1rel.tar.gz 3. 安装依赖包 pip install numpy -i https://mirrors.a 阅读全文

posted @ 2020-05-14 21:42 闹不机米 阅读(1847) 评论(0) 推荐(0) 编辑

2020年5月7日

Docker 命令大全

摘要: 1. docker登陆 docker login -u 用户名 -p 密码 IP地址 2. 退出登陆 docker logout 3. 查询本地仓库的所有镜像 docker images 4. 重命名镜像 docker tag 镜像id 镜像:版本号 5. 删除镜像 docker rmi 镜像id 阅读全文

posted @ 2020-05-07 20:51 闹不机米 阅读(240) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10 11 12 下一页

导航