Skip to content
Prev Previous commit
Next Next commit
fixed logic as @tonysyu pointed out
  • Loading branch information
tacaswell committed Jan 16, 2014
commit ce6a8cfca8ae81a1d11fafb096108f76baf219b6
2 changes: 1 addition & 1 deletion lib/matplotlib/rcparam_ng.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def set_defaults(cls, key, new_defaults):
@wraps(orig_fun)
def wrapper(*args, **kwargs):
for k, v in new_defaults.iteritems():
if k not in kwargs and kwargs[k] is not None:
if k not in kwargs or kwargs[k] is None:
kwargs[k] = v
return orig_fun(*args, **kwargs)

Expand Down