未验证 提交 b9439330 编写于 作者: 飞龙 提交者: GitHub

Merge pull request #23 from sfw134/master

Update 34.md
...@@ -4,24 +4,24 @@ ...@@ -4,24 +4,24 @@
FacetGrid.map_dataframe(func, *args, **kwargs) FacetGrid.map_dataframe(func, *args, **kwargs)
``` ```
Like `.map` but passes args as strings and inserts data in kwargs. `.map`类似,但是将args作为字符串传递并将数据插入到kwargs中.
This method is suitable for plotting with functions that accept a long-form DataFrame as a <cite>data</cite> keyword argument and access the data in that DataFrame using string variable names. 此方法适用于使用接受长格式DataFrame作为<cite>data</cite>关键字参数并使用字符串变量名访问该DataFrame中的数据的函数进行绘图。
参数:`func`callable 参数:`func`可调用
> A plotting function that takes data and keyword arguments. Unlike the &lt;cite&gt;map&lt;/cite&gt; method, a function used here must “understand” Pandas objects. It also must plot to the currently active matplotlib Axes and take a &lt;cite&gt;color&lt;/cite&gt; keyword argument. If faceting on the &lt;cite&gt;hue&lt;/cite&gt; dimension, it must also take a &lt;cite&gt;label&lt;/cite&gt; keyword argument. > 一个接受数据和关键字参数的绘图函数。与&lt;cite&gt;map&lt;/cite&gt;方法不同,此处使用的函数必须“理解”Pandas对象。它也必须绘制到当前活动的matpltolib轴并采用&lt;cite&gt;color&lt;/cite&gt;关键字参数。如果在<cite>hue</cite>维度上进行分面,必须也使用<cite>label</cite>关键字参数。
`args`strings `args`字符串
> Column names in self.data that identify variables with data to plot. The data for each variable is passed to &lt;cite&gt;func&lt;/cite&gt; in the order the variables are specified in the call. > 数据的列名,用于标识要绘制数据的变量。每个变量的数据按照调用中指定变量的顺序传递给<cite>func</cite>。
`kwargs`keyword arguments `kwargs`关键字参数
> All keyword arguments are passed to the plotting function. > 所有的关键字参数被传递给绘图函数。
返回值:`self`object 返回值:`self`对象
> Returns self. > 返回自身。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册