Skip to content

Commit 56d4d3f

Browse files
author
dcherian
committed
Fix error.
1 parent 95e5ea9 commit 56d4d3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/plot/plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def line(darray, *args, **kwargs):
204204

205205
ax = get_axis(figsize, size, aspect, ax)
206206

207-
error_msg = 'must be either None or %r' % (' or '.join(darray.dims))
207+
error_msg = 'must be either None or one of %r' % list(darray.dims)
208208

209209
if x not in [None, *darray.dims]:
210210
raise ValueError('x ' + error_msg)

0 commit comments

Comments
 (0)