SimHei', font_scale=0.8, style="darkgrid") # 解决Seaborn中文显示问题
# 导入数据
df = sns.load_dataset("iris")
# 构造子图...as plt
import seaborn as sns
import matplotlib.gridspec as gridspec
# 导入自定义模块
import SeabornFig2Grid...子图
mg1 = sfg.SeabornFig2Grid(scatter1, fig, gs[0])
mg2 = sfg.SeabornFig2Grid(scatter2, fig, gs[1])
mg3...子图
mg1 = sfg.SeabornFig2Grid(scatter1, fig, gs[0])
mg2 = sfg.SeabornFig2Grid(scatter2, fig, gs[1])...np.repeat( range(1,6), 1000), 'y': a })
fig, axs = plt.subplots(ncols=2, figsize=(8, 4)) # 创建1行2列的子图