# Plotting

## Dataset

| [`Dataset.plot.lines`](../generated/xarray.Dataset.plot.lines.html.md#xarray.Dataset.plot.lines)(\*args[, x, y, z, hue, ...])         | Line plot of DataArray values.         |
|------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------|
| [`Dataset.plot.scatter`](../generated/xarray.Dataset.plot.scatter.html.md#xarray.Dataset.plot.scatter)(\*[, x, y, z, hue, ...])         | Scatter variables against each other.  |
| [`Dataset.plot.quiver`](../generated/xarray.Dataset.plot.quiver.html.md#xarray.Dataset.plot.quiver)(\*args[, x, y, u, v, ...])         | Quiver plot of Dataset variables.      |
| [`Dataset.plot.streamplot`](../generated/xarray.Dataset.plot.streamplot.html.md#xarray.Dataset.plot.streamplot)(\*args[, x, y, u, v, ...]) | Plot streamlines of Dataset variables. |

## DataArray

| [`DataArray.plot`](../generated/xarray.DataArray.plot.html.md#xarray.DataArray.plot)(\*[, row, col, col_wrap, ax, ...])   | Default plot of DataArray using [`matplotlib.pyplot`](https://matplotlib.org/stable/api/pyplot_summary.html#module-matplotlib.pyplot).   |
|----------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|

| [`DataArray.plot.contourf`](../generated/xarray.DataArray.plot.contourf.html.md#xarray.DataArray.plot.contourf)(\*args[, x, y, ...])     | Filled contour plot of 2D DataArray.   |
|----------------------------------------------------------------------------------------------------------------------------------|----------------------------------------|
| [`DataArray.plot.contour`](../generated/xarray.DataArray.plot.contour.html.md#xarray.DataArray.plot.contour)(\*args[, x, y, ...])       | Contour plot of 2D DataArray.          |
| [`DataArray.plot.hist`](../generated/xarray.DataArray.plot.hist.html.md#xarray.DataArray.plot.hist)(\*[, figsize, size, ...])        | Histogram of DataArray.                |
| [`DataArray.plot.imshow`](../generated/xarray.DataArray.plot.imshow.html.md#xarray.DataArray.plot.imshow)(\*args[, x, y, ...])         | Image plot of 2D DataArray.            |
| [`DataArray.plot.line`](../generated/xarray.DataArray.plot.line.html.md#xarray.DataArray.plot.line)(\*args[, row, col, ...])         | Line plot of DataArray values.         |
| [`DataArray.plot.lines`](../generated/xarray.DataArray.plot.lines.html.md#xarray.DataArray.plot.lines)(\*args[, x, y, z, hue, ...])   | Line plot of DataArray values.         |
| [`DataArray.plot.pcolormesh`](../generated/xarray.DataArray.plot.pcolormesh.html.md#xarray.DataArray.plot.pcolormesh)(\*args[, x, y, ...]) | Pseudocolor plot of 2D DataArray.      |
| [`DataArray.plot.step`](../generated/xarray.DataArray.plot.step.html.md#xarray.DataArray.plot.step)(\*args[, where, ...])            | Step plot of DataArray values.         |
| [`DataArray.plot.scatter`](../generated/xarray.DataArray.plot.scatter.html.md#xarray.DataArray.plot.scatter)(\*args[, x, y, z, ...])    | Scatter variables against each other.  |
| [`DataArray.plot.surface`](../generated/xarray.DataArray.plot.surface.html.md#xarray.DataArray.plot.surface)(\*args[, x, y, ...])       | Surface plot of 2D DataArray.          |

## Faceting

| [`plot.FacetGrid`](../generated/xarray.plot.FacetGrid.html.md#xarray.plot.FacetGrid)(data[, col, row, col_wrap, ...])                    | Initialize the Matplotlib figure and FacetGrid object.         |
|-------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------|
| [`plot.FacetGrid.add_colorbar`](../generated/xarray.plot.FacetGrid.add_colorbar.html.md#xarray.plot.FacetGrid.add_colorbar)(\*\*kwargs)               | Draw a colorbar.                                               |
| [`plot.FacetGrid.add_legend`](../generated/xarray.plot.FacetGrid.add_legend.html.md#xarray.plot.FacetGrid.add_legend)(\*[, label, ...])             |                                                                |
| [`plot.FacetGrid.add_quiverkey`](../generated/xarray.plot.FacetGrid.add_quiverkey.html.md#xarray.plot.FacetGrid.add_quiverkey)(u, v, \*\*kwargs)       |                                                                |
| [`plot.FacetGrid.map`](../generated/xarray.plot.FacetGrid.map.html.md#xarray.plot.FacetGrid.map)(func, \*args, \*\*kwargs)                   | Apply a plotting function to each facet's subset of the data.  |
| [`plot.FacetGrid.map_dataarray`](../generated/xarray.plot.FacetGrid.map_dataarray.html.md#xarray.plot.FacetGrid.map_dataarray)(func, x, y, ...)        | Apply a plotting function to a 2d facet's subset of the data.  |
| [`plot.FacetGrid.map_dataarray_line`](../generated/xarray.plot.FacetGrid.map_dataarray_line.html.md#xarray.plot.FacetGrid.map_dataarray_line)(func, x, ...) |                                                                |
| [`plot.FacetGrid.map_dataset`](../generated/xarray.plot.FacetGrid.map_dataset.html.md#xarray.plot.FacetGrid.map_dataset)(func[, x, y, ...])          |                                                                |
| [`plot.FacetGrid.map_plot1d`](../generated/xarray.plot.FacetGrid.map_plot1d.html.md#xarray.plot.FacetGrid.map_plot1d)(func, x, y, \*[, ...])        | Apply a plotting function to a 1d facet's subset of the data.  |
| [`plot.FacetGrid.set_axis_labels`](../generated/xarray.plot.FacetGrid.set_axis_labels.html.md#xarray.plot.FacetGrid.set_axis_labels)(\*axlabels)         | Set axis labels on the left column and bottom row of the grid. |
| [`plot.FacetGrid.set_ticks`](../generated/xarray.plot.FacetGrid.set_ticks.html.md#xarray.plot.FacetGrid.set_ticks)([max_xticks, ...])              | Set and control tick behavior.                                 |
| [`plot.FacetGrid.set_titles`](../generated/xarray.plot.FacetGrid.set_titles.html.md#xarray.plot.FacetGrid.set_titles)([template, ...])              | Draw titles either above each facet or on the grid margins.    |
| [`plot.FacetGrid.set_xlabels`](../generated/xarray.plot.FacetGrid.set_xlabels.html.md#xarray.plot.FacetGrid.set_xlabels)([label])                    | Label the x axis on the bottom row of the grid.                |
| [`plot.FacetGrid.set_ylabels`](../generated/xarray.plot.FacetGrid.set_ylabels.html.md#xarray.plot.FacetGrid.set_ylabels)([label])                    | Label the y axis on the left column of the grid.               |
