@@ -25,8 +25,8 @@ def _infer_scatter_meta_data(ds, x, y, hue, hue_style, add_colorbar,
25
25
26
26
dims_coords = set (list (ds .coords ) + list (ds .dims ))
27
27
if hue is not None and hue not in dims_coords :
28
- raise ValueError (hue + ' must be either one of ({0:s})'
29
- ' ' .format (', ' .join (dims_coords )))
28
+ raise ValueError (' hue must be one of ({0:s}) but is {hue} '
29
+ 'instead. ' .format (', ' .join (dims_coords )), hue )
30
30
31
31
if hue :
32
32
hue_is_numeric = (_ensure_numeric (ds [hue ].values )
@@ -195,7 +195,8 @@ def scatter(ds, x, y, hue=None, hue_style=None, col=None, row=None,
195
195
g = FacetGrid (data = ds , col = col , row = row , col_wrap = col_wrap ,
196
196
sharex = sharex , sharey = sharey , figsize = figsize ,
197
197
aspect = aspect , size = size , subplot_kws = subplot_kws )
198
- return g .map_scatter (x = x , y = y , hue = hue , add_colorbar = add_colorbar ,
198
+ return g .map_scatter (x = x , y = y , hue = hue , hue_style = hue_style ,
199
+ add_colorbar = add_colorbar ,
199
200
add_legend = add_legend , ** kwargs )
200
201
201
202
figsize = kwargs .pop ('figsize' , None )
0 commit comments