当前位置:网站首页>[Seaborn] 5. Matrix plots
[Seaborn] 5. Matrix plots
2022-07-18 21:45:00 【Enzo wants to smash the computer】
heatmap( Heat map )
Using the thermodynamic diagram, we can see the similarity of multiple features in the data table , Similar to color matrix . The specific parameters are as follows :
seaborn.heatmap(data, vmin=None, vmax=None, cmap=None, center=None,
robust=False, annot=None, fmt='.2g', annot_kws=None,
linewidths=0, linecolor='white', cbar=True, cbar_kws=None,
cbar_ax=None, square=False, xticklabels='auto',
yticklabels='auto', mask=None, ax=None, **kwargs)
- data: Matrix data sets , You can make numpy Array of (array), If it is pandas Of dataframe, be df Of index/column The information will correspond to heatmap Of columns and rows;
- vmax,vmin: The display values of the maximum and minimum values in the legend , If there is no such parameter, it will not be displayed by default ;
- cmap: Mapping from numbers to color space , The value is matplotlib In the bag colormap Name or color object , Or a list of colors ;
- center: When the data table values are different , Set the color center alignment value of the thermal map . By setting center value , You can adjust the overall color of the generated image ; Set up center Data time , If there is data overflow , Manually set vmax、vmin Will change automatically ;
- robust: The default value False; If it is False, And it's not set vmin and vmax Value , The color mapping range of the thermal map is set according to the quantile with robustness , Instead of using extreme values ;
- annot(annotate Abbreviation ): The default value False; If it is True, Write data in each square of the thermal diagram ; If it's a matrix , Write the corresponding position data of the matrix in each square of the thermodynamic diagram ;
- fmt: String format code , The data format for identifying numbers on a matrix , For example, keep a few digits after the decimal point ;
- annot_kws: The default value False; If it is True, Set the size, color and font of the numbers on the thermal chart matrix ;
- square: Set the block shape of the heat map matrix , The default value is False;
- xticklabels, yticklabels: Control the output of each row column signature . The default value is auto, Automatically select the dimension spacing of the label , The non overlapping part of the tag name ( Or all ) Output . If it is True, with DataFrame Use the column name of as the tag name ;
- mask: Controls whether a matrix block is displayed . The default value is None. If it's Boolean DataFrame, Will DataFrame in True Cover the position with white .
5.2 clustermap( Clustering graph )
clustermap() Matrix datasets can be plotted as hierarchical clustering heat maps . The specific parameters are as follows :
seaborn.clustermap(data, pivot_kws=None, method='average', metric='euclidean',
z_score=None, standard_scale=None, figsize=None,
cbar_kws=None, row_cluster=True, col_cluster=True,
row_linkage=None, col_linkage=None, row_colors=None,
col_colors=None, mask=None, **kwargs))
边栏推荐
- Everything you need to know about cognitive analysis
- Key technologies and challenges of communication perception integration
- PyQt5-颜色对话框(QColorDialog)
- 基于STM32+华为云IOT设计的物联网鱼缸【玩转华为云】
- Mysql——字符串函数
- Cann experience officer's fifth experience documentary (Part 1)
- 鲁汶大学招募博士后研究员,利用AI/ML对太阳活动区图像进行分析和耀斑预测...
- Transaction isolation level
- [original] migration of rm500u-cn module driver
- Win11怎么打开3D查看器
猜你喜欢
![[wechat applet] progress (93/100)](/img/0f/a839174710c20fa9d111a56d2a3df3.png)
[wechat applet] progress (93/100)

Other new features of MySQL MySQL 8

Everything you need to know about cognitive analysis

Localstorage, sessionstorage string or number considerations

机器学习笔记 - 基于Keras的GAN:图像去模糊的应用

Leetcode+ 86 - 90 double pointer, backtracking, interval DP topics

Duplicate disk: how does the backpropagation process of pooling layer, average pooling and maximum pooling backpropagate

Idea creates new branches and merges code (others - > DEV)

升级版打榜活动再次火热袭来,放眼望去全是奖金

【微信小程序】progress(93/100)
随机推荐
Build an enterprise level data governance system from 0 to 1!
How to deal with the security risks of the third party in the supply chain
如何应对供应链中第三方的安全风险
Cann experience officer's fifth experience documentary (Part 1)
Spatial attribute overview C language
[enterprise wechat self built application development]
阿普奇 E7系列 工控机——MinipiceCAN卡在送餐机器人中的应用
Sql笔记
[hero planet July training leetcode problem solving daily] 16th queue
PyQt5-字体对话框(QFontDialog)
浅学js中的关系运算符
专属资源池使用最佳实践-依赖服务使用简介
Activity component export experiment
activity组件导出实验
PyQt5-文件对话框(QFileDialog)
[Huang ah code] getting started with MySQL - 2. Using data definition language (DDL) to operate the database
FreeSwitch的限流配置
基于STM32+华为云IOT设计的物联网鱼缸【玩转华为云】
6G通感一体化组网融合技术
LETV has become the king of anti involution: employees have lived a fairy life without 996!