Skip to content

Commit

Permalink
review comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Jan 24, 2019
1 parent 43057ef commit 351a466
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xarray/plot/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,8 +606,7 @@ def newplotfunc(darray, x=None, y=None, figsize=None, size=None,
cbar = _add_colorbar(primitive, ax, cbar_ax, cbar_kwargs,
cmap_params)

elif (cbar_ax is not None
or (cbar_kwargs is not None and cbar_kwargs != {})):
elif (cbar_ax is not None or cbar_kwargs):
# inform the user about keywords which aren't used
raise ValueError("cbar_ax and cbar_kwargs can't be used with "
"add_colorbar=False.")
Expand Down

0 comments on commit 351a466

Please sign in to comment.