如何对seaborn.heatmap进行调色?cmap色彩配置大全

原创不易,感谢支持~

The RColorBrewer package is an unavoidable tool to manage colors with R. It offers several color palettes, as you can see in the attached figure. This page just allows to visualize the composition of each palette. Other pages explain how to use this tool.

There are 3 types of palettes(调色板) :

顺序型

  • Sequential palettes are suited to ordered data that progress from low to high. Lightness steps dominate the look of these schemes, with light colors for low data values to dark colors for high data values. 适用于从低到高排序的数据。亮度步骤主导了这些方案的外观,用浅色表示低数据值,用深色表示高数据值。
    两端型

两端型

  • Diverging palettes put equal emphasis on mid-range critical values and extremes at both ends of the data range. The critical class or break in the middle of the legend is emphasized with light colors and low and high extremes are emphasized with dark colors that have contrasting hues.在数据范围的两端同时强调中间的临界值和极端值。在传奇的中间的关键阶层或打破被强调与轻的颜色和低和高的极端被强调与黑暗的颜色有对比的色调。

分类型(定性型的)

  • Qualitative palettes do not imply magnitude differences between legend classes, and hues are used to create the primary visual differences between classes. Qualitative schemes are best suited to representing nominal or categorical data. 不暗示图例类之间的大小差异,色调用于创建类之间的主要视觉差异。定性模式最适合表示名义或类别数据。

 下面这个图应该直接能解决很多问题 ,途中从上到下三类对应上文

猜你喜欢

转载自blog.csdn.net/qq_38604355/article/details/105705070