Skip to content

Commit 01153d2

Browse files
author
dcherian
committed
Follow suggestions.
1 parent 1c657a8 commit 01153d2

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
@@ -205,7 +205,7 @@ def line(darray, *args, **kwargs):
205205
ax = get_axis(figsize, size, aspect, ax)
206206

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

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

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

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

0 commit comments

Comments
 (0)