raise GgplotError(msg.format(ae))
evaled = data.loc[:, list(renames.keys())]
evaled.rename(columns=renames, inplace=True)
evaled.update(settings)
if len(data) == 0 and settings:
// No data, and vectors suppled to aesthetics
After Change
scales_add_defaults(plot.scales, data, aesthetics)
colnames = [] // columns to rename with aesthetics names
aenames = [] // aesthetics names to use
settings = {} // for manual settings withing aesthetics
for ae, col in aesthetics.items():
if isinstance(col, six.string_types):
colnames.append(col)
aenames.append(ae)
elif com.is_list_like(col):
n = len(col)
if n != len(data) or n != 1:
raise GgplotError(