Return a parameter dict to scale elements of the figure.
This affects things like the size of the labels, lines, and other elements of the plot, but not the overall style. The base context is “notebook”, and the other contexts are “paper”, “talk”, and “poster”, which are version of the notebook parameters scaled by .8, 1.3, and 1.6, respectively.
This function returns an object that can be used in a `with` statement to temporarily change the context parameters.
> Separate scaling factor to independently scale the size of the font elements.
`font_scale`:浮点数,可选
`rc`:dict, optional
> 单独的缩放因子可以独立缩放字体元素大小
> Parameter mappings to override the values in the preset seaborn context dictionaries. This only updates parameters that are considered part of the context definition.
`rc`:dict,可选
> 参数映射以覆盖预设的seaborn的文本字典中的值。这只更新被视为文本定义的一部分的参数。
也可参见
See also
设置matplotlib参数以调整绘图元素返回定义图形样式的参数的dict,定义绘图的调色板。
set the matplotlib parameters to scale plot elementsreturn a dict of parameters defining a figure styledefine the color palette for a plot
This affects things like the size of the labels, lines, and other elements of the plot, but not the overall style. The base context is “notebook”, and the other contexts are “paper”, “talk”, and “poster”, which are version of the notebook parameters scaled by .8, 1.3, and 1.6, respectively.
> A dictionary of parameters or the name of a preconfigured set.
> 参数集或者是预设集合的名字
`font_scale`:float, optional
`font_scale`:浮点数,可选
> Separate scaling factor to independently scale the size of the font elements.
> 单独的缩放因子可以独立缩放字体元素大小
`rc`:dict, optional
`rc`:dict,可选
> Parameter mappings to override the values in the preset seaborn context dictionaries. This only updates parameters that are considered part of the context definition.
return a dictionary of rc parameters, or use in a `with` statement to temporarily set the context.set the default parameters for figure styleset the default color palette for figures
Color codes can be set through the high-level seaborn style manager.Color codes can also be set through the function that sets the matplotlib color cycle.
将matplotlib颜色代码映射到默认的seaborn调色板。
Examples
Map matplotlib color codes to the default seaborn palette.