目的:要使用for循环生成100个barplots,并显示输出作为副区图像用for循环生成多个图;在matplotlib副区显示输出
数据格式:数据文件与101列。最后一列是X变量;剩余的100列是Y变量,对其绘制x。
期望输出:Barplots在5×20阵列的插曲,如在本实施例中图像:
当前方法:我在seaborn,其产生的nx 1阵列被使用PairGrid: 。
where input == dataframe; input3 ==从哪列列表被调用的列表:
for i in input3:
plt.figure(i)
g = sns.PairGrid(input,
x_vars=["key_variable"],
y_vars=i,
aspect=.75, size=3.5)
g.map(sns.barplot, palette="pastel")
有没有人有任何想法如何解决这个问题?