# Already have old key, so can't add a new key. Or have multiple new
# values.
raiseGnuplotlibError("Options dict given multiple values for key '{}'".format(key_normalized))
iflen(values)>1:
raiseGnuplotlibError("plot options given multiple values for key '{}'".format(key_normalized))
ifkeyindorkey_normalizedind:
# A value already exists. What do I do?
if (overwriteisnotNone)andoverwrite:
pass
elif (overwriteisnotNone)andnotoverwrite:
return
else:
# overwrite is None (the default). Barf.
raiseGnuplotlibError("plot options already have a value for key '{}'. Pass 'overwrite=False' to use the existing one of 'overwrite=True' to use the new one".format(key_normalized))