Skip to content

Commit 01e4850

Browse files
committed
aded back in tests (w/o assert facetgrid lines)
1 parent 5b4805e commit 01e4850

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

cf_xarray/tests/test_accessor.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,20 @@ def test_dataarray_plot(obj):
294294
assert isinstance(rv, mpl.contour.QuadContourSet)
295295
plt.close()
296296

297+
rv = obj.cf.plot(x="X", y="Y", col="T")
298+
plt.close()
299+
300+
rv = obj.cf.plot.contourf(x="X", y="Y", col="T")
301+
plt.close()
302+
297303
rv = obj.isel(lat=[0, 1], lon=1).cf.plot.line(x="T", hue="Y")
298304
assert all([isinstance(line, mpl.lines.Line2D) for line in rv])
299305
plt.close()
300306

307+
obj = obj.copy(deep=True)
308+
obj.time.attrs.clear()
309+
rv = obj.cf.plot(x="X", y="Y", col="time")
310+
301311

302312
@pytest.mark.parametrize("obj", datasets)
303313
def test_dataset_plot(obj):

0 commit comments

Comments
 (0)