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

Method test_datetime_hue

xarray/tests/test_plot.py:2942–2950  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2940 self.ds.plot.scatter("A", "B")
2941
2942 def test_datetime_hue(self) -> None:
2943 ds2 = self.ds.copy()
2944
2945 # TODO: Currently plots as categorical, should it behave as numerical?
2946 ds2["hue"] = pd.date_range("2000-1-1", periods=4)
2947 ds2.plot.scatter(x="A", y="B", hue="hue")
2948
2949 ds2["hue"] = pd.timedelta_range("-1D", periods=4, freq="D", unit="ns") # type: ignore[call-arg,unused-ignore]
2950 ds2.plot.scatter(x="A", y="B", hue="hue")
2951
2952 def test_facetgrid_hue_style(self) -> None:
2953 ds2 = self.ds.copy()

Callers

nothing calls this directly

Calls 2

copyMethod · 0.45
scatterMethod · 0.45

Tested by

no test coverage detected