🍾 Xarray is now 10 years old! 🎉

xarray.plot.FacetGrid.map_plot1d

xarray.plot.FacetGrid.map_plot1d#

FacetGrid.map_plot1d(func, x, y, *, z=None, hue=None, markersize=None, linewidth=None, **kwargs)[source]#

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

This is more convenient and less general than FacetGrid.map

Parameters:
  • func – A plotting function with the same signature as a 1d xarray plotting method such as xarray.plot.scatter

  • x, y – Names of the coordinates to plot on x, y axes

  • **kwargs – additional keyword arguments to func

Returns:

self (FacetGrid object)