matplotlib 饼图+ 柱状图的绘制(官方案例)
import matplotlib.pyplot as plt
from matplotlib.patches import ConnectionPatch
import numpy as np
# 创建 figure 图片, 然后分配子视图
# make figure and assign axis objects
fig = plt.figure(figsize=(9, 5))
ax1 = fig.add_subplot(121)
ax2 = fig.add_subplot(122)
fig.subp
原创
2020-06-03 22:11:27 ·
948 阅读 ·
0 评论