def __init__(self, my_dict):
sns.set_style("whitegrid")
_ = plt.figure()
grid_x = 1 if len(my_dict) == 1 else round(len(my_dict) / 2,0)
grid_y = 1 if len(my_dict) == 1 else 2
fig, ax = plt.subplots(figsize=(grid_y*15, grid_x*10))
for num, item in enumerate(my_dict):
_ = plt.subplot(grid_x,grid_y,num+1)
self.__dict_plot(item)
评论列表
文章目录