# seaborn.FacetGrid.map_dataframe
> 譯者:[sfw134](https://github.com/sfw134)
```py
FacetGrid.map_dataframe(func, *args, **kwargs)
```
和 `.map`類似,但是將 args 作為字符串傳遞并將數據插入到 kwargs 中.
此方法適用于使用接受長格式 DataFrame 作為`data`關鍵字參數并使用字符串變量名訪問該 DataFrame 中的數據的函數進行繪圖。
參數:`func`:可調用
> 一個接受數據和關鍵字參數的繪圖函數。與`map`方法不同,此處使用的函數必須“理解”Pandas 對象。它也必須繪制到當前活動的 matpltolib 軸并采用`color`關鍵字參數。如果在<cite>hue</cite>維度上進行分面,必須也使用<cite>label</cite>關鍵字參數。
`args`:字符串
> 數據的列名,用于標識要繪制數據的變量。每個變量的數據按照調用中指定變量的順序傳遞給<cite>func</cite>。
`kwargs`:關鍵字參數
> 所有的關鍵字參數被傳遞給繪圖函數。
返回值:`self`:對象
> 返回自身。
- seaborn 0.9 中文文檔
- Seaborn 簡介
- 安裝和入門
- 可視化統計關系
- 可視化分類數據
- 可視化數據集的分布
- 線性關系可視化
- 構建結構化多圖網格
- 控制圖像的美學樣式
- 選擇調色板
- seaborn.relplot
- seaborn.scatterplot
- seaborn.lineplot
- seaborn.catplot
- seaborn.stripplot
- seaborn.swarmplot
- seaborn.boxplot
- seaborn.violinplot
- seaborn.boxenplot
- seaborn.pointplot
- seaborn.barplot
- seaborn.countplot
- seaborn.jointplot
- seaborn.pairplot
- seaborn.distplot
- seaborn.kdeplot
- seaborn.rugplot
- seaborn.lmplot
- seaborn.regplot
- seaborn.residplot
- seaborn.heatmap
- seaborn.clustermap
- seaborn.FacetGrid
- seaborn.FacetGrid.map
- seaborn.FacetGrid.map_dataframe
- seaborn.PairGrid
- seaborn.PairGrid.map
- seaborn.PairGrid.map_diag
- seaborn.PairGrid.map_offdiag
- seaborn.PairGrid.map_lower
- seaborn.PairGrid.map_upper
- seaborn.JointGrid
- seaborn.JointGrid.plot
- seaborn.JointGrid.plot_joint
- seaborn.JointGrid.plot_marginals
- seaborn.set
- seaborn.axes_style
- seaborn.set_style
- seaborn.plotting_context
- seaborn.set_context
- seaborn.set_color_codes
- seaborn.reset_defaults
- seaborn.reset_orig
- seaborn.set_palette
- seaborn.color_palette
- seaborn.husl_palette
- seaborn.hls_palette
- seaborn.cubehelix_palette
- seaborn.dark_palette
- seaborn.light_palette
- seaborn.diverging_palette
- seaborn.blend_palette
- seaborn.xkcd_palette
- seaborn.crayon_palette
- seaborn.mpl_palette
- seaborn.choose_colorbrewer_palette
- seaborn.choose_cubehelix_palette
- seaborn.choose_light_palette
- seaborn.choose_dark_palette
- seaborn.choose_diverging_palette
- seaborn.load_dataset
- seaborn.despine
- seaborn.desaturate
- seaborn.saturate
- seaborn.set_hls_values