Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion xarray/plot/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ def line(darray, *args, **kwargs):
if ndims == 1:
xlabel, = darray.dims
if x is not None and xlabel != x:
raise ValueError('Input does not have specified dimension ' + x)
raise ValueError('Input does not have specified dimension'
+ ' {!r}'.format(x))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just for future reference: you can skip the + character and rely on implicit string concatenation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't know about that. Thanks.


x = darray.coords[xlabel]

Expand Down