diff --git a/docs/35.md b/docs/35.md index 9537e490c2080dada54569ca73410de3a9f5592b..3683993c2f7a840add9edc1d377c339ac0bfd1cc 100644 --- a/docs/35.md +++ b/docs/35.md @@ -4,37 +4,37 @@ class seaborn.PairGrid(data, hue=None, hue_order=None, palette=None, hue_kws=None, vars=None, x_vars=None, y_vars=None, diag_sharey=True, height=2.5, aspect=1, despine=True, dropna=True, size=None) ``` -Subplot grid for plotting pairwise relationships in a dataset. +用于绘制数据集中成对关系的子图网格。 -This class maps each variable in a dataset onto a column and row in a grid of multiple axes. Different axes-level plotting functions can be used to draw bivariate plots in the upper and lower triangles, and the the marginal distribution of each variable can be shown on the diagonal. +此类将数据集中的每个变量映射到多个轴的网格中的列和行。可以使用不同的轴级绘图函数来绘制上三角和下三角的双变量图,并且对角线上可以显示每个变量的边际分布。 -It can also represent an additional level of conditionalization with the `hue` parameter, which plots different subets of data in different colors. This uses color to resolve elements on a third dimension, but only draws subsets on top of each other and will not tailor the `hue` parameter for the specific visualization the way that axes-level functions that accept `hue` will. +它还可以通过`hue`参数用不同颜色绘制不同的数据子集来表示附加级别的条件化。这使用颜色来解析第三维的元素,但只是在彼此之上绘制子集,并且不会像接受`hue`的轴级函数那样为特定可视化定制`hue`参数。 -See the [tutorial](../tutorial/axis_grids.html#grid-tutorial) for more information. +参考[教程](../tutorial/axis_grids.html#grid-tutorial)获取更多信息。 ```py __init__(data, hue=None, hue_order=None, palette=None, hue_kws=None, vars=None, x_vars=None, y_vars=None, diag_sharey=True, height=2.5, aspect=1, despine=True, dropna=True, size=None) ``` -Initialize the plot figure and PairGrid object. +初始化绘图和PairGrid对象。 -参数:`data`:DataFrame +参数:`data`:DataFrame格式 -> Tidy (long-form) dataframe where each column is a variable and each row is an observation. +> 整洁(长形式)数据框,其中每列是一个变量,每行是一个观察。 -`hue`:string (variable name), optional +`hue`:字符串 (变量名), 可选 -> Variable in `data` to map plot aspects to different colors. +> `data`中的变量,将绘图的不同面映射为不同的颜色。 -`hue_order`:list of strings +`hue_order`:字符串列表 -> Order for the levels of the hue variable in the palette +> 调色板中色调变量的等级顺序 -`palette`:dict or seaborn color palette +`palette`:字典或者seaborn调色板 -> Set of colors for mapping the `hue` variable. If a dict, keys should be values in the `hue` variable. +> 用于映射`hue`变量的颜色集.如果是一个字典,键应为`hue`变量中的值。 -`hue_kws`:dictionary of param -> list of values mapping +`hue_kws`:参数字典 -> 值列表映射 > Other keyword arguments to insert into the plotting call to let other plot attributes vary across levels of the hue variable (e.g. the markers in a scatterplot). @@ -187,4 +187,4 @@ Methods | [`map_offdiag`](seaborn.PairGrid.map_offdiag.html#seaborn.PairGrid.map_offdiag "seaborn.PairGrid.map_offdiag")(func, **kwargs) | Plot with a bivariate function on the off-diagonal subplots. | | [`map_upper`](seaborn.PairGrid.map_upper.html#seaborn.PairGrid.map_upper "seaborn.PairGrid.map_upper")(func, **kwargs) | Plot with a bivariate function on the upper diagonal subplots. | | `savefig`(*args, **kwargs) | Save the figure. | -| `set`(**kwargs) | Set attributes on each subplot Axes. | \ No newline at end of file +| `set`(**kwargs) | Set attributes on each subplot Axes. |