Python 在Seaborn的PyPlot子地块中设置地物大小

Python 在Seaborn的PyPlot子地块中设置地物大小,python,matplotlib,seaborn,Python,Matplotlib,Seaborn,我有一段代码可以在一张图像中绘制多个散点图- columns_for_clusters = set(column_types_and_names['object']) - set(ignore_columns_in_model) columns_for_clusters = list(columns_for_clusters) fig,ax1 = plt.subplots(math.ceil((len(column_types_and_names["int64"]) - 2)/3),3) plt

我有一段代码可以在一张图像中绘制多个散点图-

columns_for_clusters = set(column_types_and_names['object']) - set(ignore_columns_in_model)
columns_for_clusters = list(columns_for_clusters)
fig,ax1 = plt.subplots(math.ceil((len(column_types_and_names["int64"]) - 2)/3),3)
plt.figure(figsize=(16, 6))

x = 0
for index in range(0,len(column_types_and_names["int64"])):
  if(column_types_and_names["int64"][index] != 'SalePrice' and column_types_and_names["int64"][index] != 'Id'):
    #train.plot(kind="scatter", x="SalePrice", y=column_types_and_names["int64"][index], ax=ax1[int(x / 3)][x % 3],figsize = (30,40), s = 1)
    g =sns.scatterplot(x="SalePrice", y=column_types_and_names["int64"][index],
          hue=columns_for_clusters[0],
          data=train, ax = ax1[int(x / 3)][x % 3]);
    x = x + 1
plt.show()
这些地块的面积小得令人难以置信。我该如何解决这个问题

我得画12*3个图 这个阴谋在熊猫阴谋中起了作用。有没有办法在熊猫散点图中显示带有分类颜色的散点图?

这项工作-

columns_for_clusters = set(column_types_and_names['object']) - set(ignore_columns_in_model)
columns_for_clusters = list(columns_for_clusters)
fig,ax1 = plt.subplots(math.ceil((len(column_types_and_names["int64"]) - 2)/3),3)
plt.figure(figsize=(30, 40))

x = 0
for index in range(0,len(column_types_and_names["int64"])):
  if(column_types_and_names["int64"][index] != 'SalePrice' and column_types_and_names["int64"][index] != 'Id'):
    #train.plot(kind="scatter", x="SalePrice", y=column_types_and_names["int64"][index], ax=ax1[int(x / 3)][x % 3],figsize = (30,40), s = 1)
    sns.scatterplot(x="SalePrice", y=column_types_and_names["int64"][index],
      hue=columns_for_clusters[0],
      data=train, ax = ax1[int(x / 3)][x % 3]);
    x = x + 1
plt.show()

删除
g=

第4行:
figsize=(越大,越大)
?@it's-yer-boy-chet-对多个值无效。