如何创建带有瓦片周围框架的seaborn.heatmap()? [英] How to create a seaborn.heatmap() with frames around the tiles?

查看:41
本文介绍了如何创建带有瓦片周围框架的seaborn.heatmap()?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用seaborn.heatmap()绘制了一个热图.但是,出于某种目的,我需要围绕情节的框架.

I rendered a heatmap with seaborn.heatmap() works nicely. However, for a certain purpose I need frames around the plot.

matplotlib.rcParams['axes.edgecolor'] = 'black'
matplotlib.rcParams['axes.linewidth'] = 1

两者都不起作用.

推荐答案

sns.heatmap(数据集,线宽= 1,线色=黑色")

sns.heatmap(dataset, linewidths=1, linecolor='black')

这篇关于如何创建带有瓦片周围框架的seaborn.heatmap()?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆