一知半解系列纯粹是博主为了记录平常在学习过程中遇到的新知识,不会作过深的研究,只求会应用即可,主要目的是为了方便查询。
seaborn是python可视化工具之一,讲到可视化工具自然会想起matplotlib.
seaborn 与matplotlib相比,是更高级的api封装,使用起来更加简单。
据说seaborn的可视化效果会比matplotlib更佳!
seaborn不像matplotlib那样有很多默认参数。
我们通过几个函数来了解seaborn的应用:
(1)seaborn.set
函数声明:
seaborn.
set
(context='notebook', style='darkgrid', palette='deep', font='sans-serif', font_scale=1, color_codes=True, rc=None)
context:notebook,paper,talk,poster context参数包括这四种,直观上来看该参数是调整图中标签,轴参数等的大小,如下图所示,依次是notebook,paper,talk,poster:
style:darkgrid, w