Skip to content

Commit 36b148d

Browse files
committed
14 sports
1 parent 00d3918 commit 36b148d

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

sports/readme.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## 全运会历届金牌数可视化
2+
3+
一个简单的数据采集+可视化案例
4+
5+
需安装库:
6+
7+
pandas
8+
9+
matplotlib
10+
11+
pyecharts
12+
13+
相关文章:[【可视化】看!全运会历届金牌榜](https://mp.weixin.qq.com/s/FVq0AD60BIWDCX5pviGczA)
14+
15+
------
16+
17+
更多实用有趣的例程
18+
19+
欢迎关注公众号“**Crossin的编程教室**”及同名 [知乎专栏](https://zhuanlan.zhihu.com/crossin)
20+
21+
![crossincode](../crossin-logo.png)
22+

sports/sports.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
"\n",
122122
"plt.rcParams['figure.figsize'] = (16, 12)\n",
123123
"# 中文乱码问题(自行下载)\n",
124-
"font = mpl.font_manager.FontProperties(fname='../simhei.ttf', size=15)\n",
124+
"font = mpl.font_manager.FontProperties(fname='../zhaozi.ttf', size=15)\n",
125125
"\n",
126126
"for team in gold:\n",
127127
" plt.plot(gold[team], linewidth=4, label=team)\n",

sports/sports.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
plt.rcParams['figure.figsize'] = (16, 12)
6565
# 中文乱码问题(自行下载)
66-
font = mpl.font_manager.FontProperties(fname='../simhei.ttf', size=15)
66+
font = mpl.font_manager.FontProperties(fname='../zhaozi.ttf', size=15)
6767

6868
for team in gold:
6969
plt.plot(gold[team], linewidth=4, label=team)

0 commit comments

Comments
 (0)