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

2020年9月17日

js 鼠标特效

摘要: <script type="text/javascript"> /* 鼠标特效 */ var a_idx = 0; jQuery(document).ready(function($) { $("body").click(function(e) { var a = new Array("❤JAVA❤ 阅读全文

posted @ 2020-09-17 14:27 闹不机米 阅读(180) 评论(0) 推荐(0)

js 生成雪花间隔

摘要: <script type="text/javascript"> window.onload = function () { var minSize = 10; //最小字体 var maxSize = 20;//最大字体 var newOne = 600; //生成雪花间隔 var flakColo 阅读全文

posted @ 2020-09-17 14:24 闹不机米 阅读(131) 评论(0) 推荐(0)

2020年8月31日

python 为直方图绘制拟合曲线

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

posted @ 2020-08-31 11:43 闹不机米 阅读(5605) 评论(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 闹不机米 阅读(3093) 评论(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 闹不机米 阅读(913) 评论(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 闹不机米 阅读(826) 评论(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 闹不机米 阅读(671) 评论(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 闹不机米 阅读(744) 评论(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 闹不机米 阅读(458) 评论(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 闹不机米 阅读(263) 评论(0) 推荐(0)

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

导航