Skip to content

Commit 4ce9e2c

Browse files
committed
kde plot added kwargs
1 parent 433a9c7 commit 4ce9e2c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pymc3/plots.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def make_2d(a):
150150
return a
151151

152152

153-
def kde2plot_op(ax, x, y, grid=200, cmap=None):
153+
def kde2plot_op(ax, x, y, grid=200, cmap=None, **kwargs):
154154

155155
if cmap is None:
156156
cmap =plt.cm.gist_earth_r
@@ -168,7 +168,7 @@ def kde2plot_op(ax, x, y, grid=200, cmap=None):
168168
Z = np.reshape(kernel(positions).T, X.shape)
169169

170170
ax.imshow(np.rot90(Z), cmap=cmap,
171-
extent=[xmin, xmax, ymin, ymax])
171+
extent=[xmin, xmax, ymin, ymax], **kwargs)
172172

173173

174174
def kdeplot(data, ax=None):
@@ -178,10 +178,10 @@ def kdeplot(data, ax=None):
178178
return ax
179179

180180

181-
def kde2plot(x, y, grid=200, ax=None, cmap=None):
181+
def kde2plot(x, y, grid=200, ax=None, cmap=None, **kwargs):
182182
if ax is None:
183183
f, ax = plt.subplots(1, 1, squeeze=True)
184-
kde2plot_op(ax, x, y, grid, cmap)
184+
kde2plot_op(ax, x, y, grid, cmap, **kwargs)
185185
return ax
186186

187187

0 commit comments

Comments
 (0)