相关疑难解决方法(0)

如何更改seaborn图的图形大小?

如何更改图像的大小以使其适合打印?

例如,我想使用A4纸,其横向尺寸为11.7英寸×8.27英寸.

python seaborn

171
推荐指数
13
解决办法
26万
查看次数

如何使seaborn.heatmap更大(正常大小)?

我在jupyter笔记本中用以下命令显示了情节:

sns.heatmap(pcts, annot=True, linewidth=.1, vmax=99, fmt='.1f', cmap='YlOrRd', square=True, cbar=False)
plt.yticks(list(reversed(range(len(indices)))), ['Index '+str(x) for x in indices], rotation='horizontal')
plt.title('Percentile ranks of\nsamples\' category spending');
Run Code Online (Sandbox Code Playgroud)

得到了以下图片

正方形太小的热图

即正方形看起来小得令人无法接受.

我怎样才能让它们更大?

python heatmap seaborn jupyter-notebook

9
推荐指数
2
解决办法
2万
查看次数

如何更改Seaborn中的regplot的绘图大小?

类似于fig.set_size_inches(18.5, 10.5)matplotlib的东西.

python matplotlib seaborn

4
推荐指数
2
解决办法
6268
查看次数

标签 统计

python ×3

seaborn ×3

heatmap ×1

jupyter-notebook ×1

matplotlib ×1