# xarray.plot.FacetGrid.map_dataarray

#### FacetGrid.map_dataarray(func, x, y, \*\*kwargs)[[source]](https://github.com/pydata/xarray/blob/main/xarray/plot/facetgrid.py#L354-L430)

Apply a plotting function to a 2d facet’s subset of the data.

This is more convenient and less general than `FacetGrid.map`

* **Parameters:**
  * **func** ([`callable()`](https://docs.python.org/3/builtins/functions.html#callable)) – A plotting function with the same signature as a 2d xarray
    plotting method such as xarray.plot.imshow
  * **x, y** ([`string`](https://docs.python.org/3/builtins/stdtypes.html#str)) – Names of the coordinates to plot on x, y axes
  * **\*\*kwargs** – additional keyword arguments to func
* **Returns:**
  **self** (`FacetGrid object`)
