Skip to content

Commit 565e26f

Browse files
fonnesbecktwiecki
authored andcommitted
Simplified popping alpha from kwargs
1 parent 484fe96 commit 565e26f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pymc3/plots/artists.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,7 @@ def set_key_if_doesnt_exist(d, key, value):
122122
d[key] = value
123123

124124
if kde_plot:
125-
if 'alpha' in kwargs:
126-
alpha = kwargs.pop('alpha')
127-
else:
128-
alpha = 0.35
129-
kdeplot(trace_values, alpha=alpha, ax=ax, **kwargs)
125+
kdeplot(trace_values, alpha=kwargs.pop('alpha', 0.35), ax=ax, **kwargs)
130126

131127
else:
132128
set_key_if_doesnt_exist(kwargs, 'bins', 30)

0 commit comments

Comments
 (0)