def setup_figure():
f = plt.figure(figsize=(7, 5))
mat_grid = plt.GridSpec(2, 6, .07, .52, .98, .95, .15, .20)
mat_axes = [f.add_subplot(spec) for spec in mat_grid]
sticks_axes, rest_axes = np.array_split(mat_axes, 2)
scatter_grid = plt.GridSpec(1, 6, .07, .30, .98, .49, .15, .05)
scatter_axes = [f.add_subplot(spec) for spec in scatter_grid]
kde_grid = plt.GridSpec(1, 6, .07, .07, .98, .21, .15, .05)
kde_axes = [f.add_subplot(spec) for spec in kde_grid]
cbar_ax = f.add_axes([.04, .62, .015, .26])
return f, sticks_axes, rest_axes, scatter_axes, kde_axes, cbar_ax
评论列表
文章目录