Python中seaborn调色盘的示例分析


这篇文章主要为大家展示了“Python中seaborn调色盘的示例分析”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“Python中seaborn调色盘的示例分析”这篇文章吧。该函数是seaborn选取颜色关键函数color_palette() will accept the name of any seaborn palette or matplotlib colorma语法:seaborn.color_palette(palette=None, n_colors=N免费云主机域名one, desat=None)分三大类:‘sequential’(渐变色), ‘diverging’(不可描述,看下图), ‘qualitative’(各种颜色区分鲜明)该函数可以预览各种颜色盘, 只能在jupyter notebook中使用。下面详细介绍上面三类颜色。to distinguish discrete chunks of data that do not have an inherent ordering,分如下几类:1、deep, muted, pastel, bright, dark, colorblind2、hls3、husl4、palettable 5、xkcd6、传入颜色list从上到下依次为:deep, muted, pastel, bright, dark, colorblindxkcd,详细可参考 :Python可视化学习之matplotlib内置单颜色is appropriate when data range from relatively low or uninteresting values to relatively high or interesting values1、”Blues”这类2、’cubehelix’,seaborn.cubehelix_palette(n_colors=6, start=0, rot=0.4, gamma=1.0, hue=0.8, light=0.85, dark=0.15, reverse=False, as_cmap=False)3、传统色的渐变色,light_palette()、dark_palette()for data where both large low and high values are interesting.1、diverging_palette()以上是“Python中seaborn调色盘的示例分析”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注百云主机行业资讯频道!

相关推荐: html5中的列表分为哪些类型

这篇文章主要介绍“html5中的列表分为哪些类型”,在日常操作中,相信很多人在html5中的列表分为哪些类型问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”html5中的列表分为哪些类型”的疑惑有所帮助!接下来,请跟着小编一起来学…

免责声明:本站发布的图片视频文字,以转载和分享为主,文章观点不代表本站立场,本站不承担相关法律责任;如果涉及侵权请联系邮箱:360163164@qq.com举报,并提供相关证据,经查实将立刻删除涉嫌侵权内容。

(0)
打赏 微信扫一扫 微信扫一扫
上一篇 09/01 09:16
下一篇 09/01 09:16

相关推荐