Skip to content

Commit 3cd49cb

Browse files
author
dcherian
committed
Follow suggestions.
1 parent 81f5a65 commit 3cd49cb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

xarray/plot/plot.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def line(darray, *args, **kwargs):
206206
ax = get_axis(figsize, size, aspect, ax)
207207

208208
error_msg = ('must be either None or one of ({0:s})'
209-
.format(', '.join(['\'' + dd + '\'' for dd in darray.dims])))
209+
.format(', '.join([repr(dd) for dd in darray.dims])))
210210

211211
if x is not None and x not in darray.dims:
212212
raise ValueError('x ' + error_msg)
@@ -215,7 +215,8 @@ def line(darray, *args, **kwargs):
215215
raise ValueError('y ' + error_msg)
216216

217217
if x is not None and y is not None:
218-
raise ValueError('You cannot specify both x and y kwargs.')
218+
raise ValueError('You cannot specify both x and y kwargs'
219+
'for line plots.')
219220

220221
if ndims == 1:
221222
dim, = darray.dims # get the only dimension name

0 commit comments

Comments
 (0)