Skip to content

Commit 2c40bb5

Browse files
committed
Fix test
1 parent 0c38758 commit 2c40bb5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

xarray/plot/dataset_plot.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,11 @@ def newplotfunc(
386386
coordinates="figure",
387387
)
388388

389-
ax.set_title(ds[u]._title_for_slice())
389+
if plotfunc.__name__ == "quiver":
390+
title = ds[u]._title_for_slice()
391+
else:
392+
title = ds[x]._title_for_slice()
393+
ax.set_title(title)
390394

391395
return primitive
392396

0 commit comments

Comments
 (0)