from urllib import request from bs4 import BeautifulSoup as bs #爬取豆瓣最受关注图书榜 resp = request.urlopen('https://book.douban.com/chart?subcat=I') html_data... ...
分类:
其他好文 时间:
2018-11-10 20:08:52
阅读次数:
274
# -*- coding:utf-8 -*- import random import matplotlib.pyplot as plt from pylab import * import pandas as pd import numpy as np import xlsxwriter t_in... ...
分类:
编程语言 时间:
2018-11-09 22:03:44
阅读次数:
283
python写入excel(xlswriter)--生成图表 折线图 柱状图: 效果图 PS: 其实前面两个图只变动一点:把 line 个性为 column 三、饼图: 效果图: 参考资料: http://xlsxwriter.readthedocs.io/chart_examples.html h ...
分类:
编程语言 时间:
2018-11-09 21:04:35
阅读次数:
256
Chart.js默认的显示方式是鼠标经过Point点的时候才会显示这个点的值,代码如下: 这样子所绘制出来的效果如下图所示: 当鼠标经过2018139那个点的时候才会显示3,但是有时候我们需要默认显示这些值,这个时候需要在options中添加如下代码: 添加之后你就会发现canvas已经可以默认显示 ...
分类:
Web程序 时间:
2018-11-09 10:52:37
阅读次数:
380
myChart.dispatchAction({ type: "takeGlobalCursor", key: 'dataZoomSelect', dataZoomSelectActive: true }); ...
分类:
其他好文 时间:
2018-11-07 17:45:08
阅读次数:
464
1、需求将数据组装: 将typeNumMap中 键为 '1' 的放在数组series 索引为1的data数组中, 将'2'放在索引为2的data数组中,如果 typeNumMap 中没有 对应的 1,2,3,4,5,就放一个0在对应数组中 ...
分类:
其他好文 时间:
2018-11-06 17:43:08
阅读次数:
385
原文:通过 xshell 连接 ubuntu on windows(WSL) 装上 ubuntu on windows 后,默认要先打开 cmd, 再运行 bash 进入 ubuntu 的 shell。 但是这个shell很难看,配色不好就算了,还存在各种复制粘贴麻烦、默认没进入 home 目录、各... ...
Highcharts.chart('container', { chart: { type: 'column' }, title: { text: 'Auto rotation limit' }, subtitle: { text: 'Short words means word-wrap make... ...
分类:
其他好文 时间:
2018-10-30 10:20:39
阅读次数:
221