如何更改 seaborn FacetGrid 对象中的箱线图大小

How to change boxplot size in seaborn FacetGrid object

我有一排箱线图是使用以下代码生成的:

import seaborn as sns
g = sns.FacetGrid(df, col="Column0", sharex=False)
g.map(sns.boxplot, 'column1', 'Column2')

它工作得很好,除了地块非常小。我看过 How can I change the font size using seaborn FacetGrid? and How to change figuresize using seaborn factorplot 以及 seaborn 手册,但我没有找到将 'size' 和 'aspect' 包含到代码中的正确方法。更改地块大小的正确方法是什么?

编辑

如果我这样尝试:

g = sns.FacetGrid(df, col="Column0", sharex=False, size=20, aspect=3)
g.map(sns.boxplot, 'Column1', 'Column2')

我收到错误:ValueError: width and height must each be below 32768。按照我的方式制作的地块是否有尺寸限制?

也许您可以尝试限制最大 x 和 y 值,这样您的绘图将自动调整到重要的值。

g.set(xlim=(0, 60), ylim=(0, 14));

你说情节非常小,这意味着存在一些具有非常高价值的元素。