MCPcopy
hub / github.com/pydata/xarray / _set_labels

Method _set_labels

xarray/plot/facetgrid.py:897–903  ·  view source on GitHub ↗
(
        self, axis: str, axes: Iterable, label: str | None = None, **kwargs
    )

Source from the content-addressed store, hash-verified

895 getattr(self, f"set_{axis}labels")(str(var))
896
897 def _set_labels(
898 self, axis: str, axes: Iterable, label: str | None = None, **kwargs
899 ) -> None:
900 if label is None:
901 label = label_from_attrs(self.data[getattr(self, f"_{axis}_var")])
902 for ax in axes:
903 getattr(ax, f"set_{axis}label")(label, **kwargs)
904
905 def set_xlabels(self, label: str | None = None, **kwargs: Any) -> None:
906 """Label the x axis on the bottom row of the grid."""

Callers 3

set_xlabelsMethod · 0.95
set_ylabelsMethod · 0.95
set_zlabelsMethod · 0.95

Calls 1

label_from_attrsFunction · 0.90

Tested by

no test coverage detected