当前位置:网站首页>Heat mapping using Seaborn
Heat mapping using Seaborn
2022-06-21 13:05:00 【51CTO】
In addition to statistical charts ,seaborn You can also draw a heat map , And support the drawing of cluster tree , There are two functions for plotting heat maps
1. heatmap, Draw a normal heat map
2. clustermap, Draw the heat map with cluster number
1. heatmap
comparison matplotlib Of imshow function , This function provides a more concise interface , You can easily add text notes and other functions , The basic usage is as follows
The output is as follows

stay imshow Some of the parameters in can also be used in this function , such as vmin, vmax,cmap Equal parameter . In addition to general parameters , This function has two features , The first is that you can easily add split lines , Make the picture more beautiful , Use linescolor and linewidth Parameter specifies the color and width of the split line , Usage is as follows
The output is as follows

The second feature is the addition of numeric annotations , Display the corresponding value on the cell , Usage is as follows
The output is as follows

2. clustermap
clustermap Draw the heat map with cluster number , The basic usage is as follows
The output is as follows

The clustering tree in the figure is through scipy The distance matrix and clustering algorithm provided in the module , adopt method and metrix Parameters can specify clustering algorithm and distance matrix algorithm respectively .
For visualization , The following parameters are commonly used 3 individual , first standard_scale, Standardize the data , For example, standardize by line , Usage is as follows
The output is as follows

The second parameter is z_score, zscore It is also a means of data standardization , Calculated by row and column zscore Can be used as follows
The output is as follows

The third parameter is zero row_color/col_color. Used to annotate row labels and column labels , Usage is as follows
The output is as follows

The above just introduces the basic usage and common parameters of the two functions , In fact, there are many specific parameters , You can use the on the official website API Documentation to learn the usage of each parameter in detail .
·end·

A man who only shares dry goods
Shengxin official account
边栏推荐
- 处理接口幂等性的两种常见方案
- hands-on-data-analysis 第二单元 第四节数据可视化
- Educoder web exercises -- text level semantic elements
- Pingcap was selected as the "voice of customers" of Gartner cloud database in 2022, and won the highest score of "outstanding performer"
- Eureka的TimedSupervisorTask类(自动调节间隔的周期性任务)
- TOOD: Task-aligned One-stage Object Detection
- Interpretation of tamigou project: 34% equity transfer of Jining Huayuan Project Management Co., Ltd
- Memcached (high performance memory object cache)
- Deep learning practice (10): 3D medical image segmentation using pytorch
- How to write test cases
猜你喜欢

Educator web exercise - grouping form elements

Application configuration management, basic principle analysis

cartographer_ceres_scan_matcher_2d

Efficient remote office manual | community essay solicitation
![[安洵杯 2019]easy_web-1](/img/1d/f164c220f6c8e98b981ef79b0e96bc.png)
[安洵杯 2019]easy_web-1

Analysis on the wallet system architecture of Baidu trading platform

Kubernetes快速實戰與核心原理剖析

Huawei cloud releases desktop ide codearts

Nanjing University static program analyses -- Introduction learning notes

Hot information of Tami dog: Xiamen property right trading center creates its first time again!
随机推荐
Analysis on the wallet system architecture of Baidu trading platform
如何编写测试用例
机器学习探索共价键碳的亚稳态相图,未来可用于发现或设计亚稳态材料
分布式事务,原理简单,写起来全是坑
CP Instruction Learning
塔米狗 热门资讯:厦门产权交易中心再创第一次!
2022年中国手机银行年度专题分析
Kubernetes' fast practice and core principle analysis
Summary of several ways to calculate distance
Nanjing University static program analyses -- Introduction learning notes
seaborn绘图风格的设置
uva11292
Is it safe to open a securities account by downloading the app of qiniu business school? Is there a risk?
[appium stepping pit] close the inspector and open the WebEditor, uiautomator2 exceptions. NullPointerExceptionError: -32001 Jsonrpc er
Isn't this another go bug?
PHP uses grafika to synthesize pictures and generate poster images
Pre training weekly (50): no decoding converter, neural prompt search, gradient space dimensionality reduction
Apache ShardingSphere 5.1.2 发布|全新驱动 API + 云原生部署,打造高性能数据网关
MySQL约束(创建表时的各种条件说明)
Tami dog sharing: the way of property right transaction and the significance of data-based property right transaction market