知识速记:
tight_layout():调整子图的相对大小使字符不会重叠
subplot():第一个数字为行,第二个为列,不传入时默认值都为1
一、用极坐标系绘制玫瑰图
import numpy as np
import pandas as pd
fig = plt.figure(figsize=(10, 6))
ax = plt.subplot(111, projection='polar')
ax.set_theta_direction(-1)
ax.set_theta_zero_location('N')
r = np.arange(100, 800, 20)
theta = np.linspace(0, np.pi * 2, len