We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8309599 commit bc8d7f9Copy full SHA for bc8d7f9
xarray/tests/test_plot.py
@@ -2670,6 +2670,12 @@ def test_datetime_line_plot(self):
2670
# test if line plot raises no Exception
2671
self.darray.plot.line()
2672
2673
+ def test_datetime_units(self):
2674
+ # test that matplotlib-native datetime works:
2675
+ fig, ax = plt.subplots()
2676
+ ax.plot(self.darray["time"], self.darray)
2677
+ assert isinstance(ax.xaxis.get_major_locator(), mpl.dates.AutoDateLocator)
2678
+
2679
2680
@pytest.mark.filterwarnings("ignore:setting an array element with a sequence")
2681
@requires_nc_time_axis
0 commit comments