Skip to content

Commit 9e75869

Browse files
author
dcherian
committed
Try again
1 parent 921a569 commit 9e75869

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

xarray/plot/plot.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ def line(darray, *args, **kwargs):
204204

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

207-
error_msg = 'must be either None or one of %r' % list(darray.dims)
207+
error_msg = ('must be either None or one of ({0:s})'
208+
.format(', '.join(['\''+dd+'\'' for dd in darray.dims])))
208209

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

0 commit comments

Comments
 (0)