We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 433a9c7 commit 4ce9e2cCopy full SHA for 4ce9e2c
pymc3/plots.py
@@ -150,7 +150,7 @@ def make_2d(a):
150
return a
151
152
153
-def kde2plot_op(ax, x, y, grid=200, cmap=None):
+def kde2plot_op(ax, x, y, grid=200, cmap=None, **kwargs):
154
155
if cmap is None:
156
cmap =plt.cm.gist_earth_r
@@ -168,7 +168,7 @@ def kde2plot_op(ax, x, y, grid=200, cmap=None):
168
Z = np.reshape(kernel(positions).T, X.shape)
169
170
ax.imshow(np.rot90(Z), cmap=cmap,
171
- extent=[xmin, xmax, ymin, ymax])
+ extent=[xmin, xmax, ymin, ymax], **kwargs)
172
173
174
def kdeplot(data, ax=None):
@@ -178,10 +178,10 @@ def kdeplot(data, ax=None):
178
return ax
179
180
181
-def kde2plot(x, y, grid=200, ax=None, cmap=None):
+def kde2plot(x, y, grid=200, ax=None, cmap=None, **kwargs):
182
if ax is None:
183
f, ax = plt.subplots(1, 1, squeeze=True)
184
- kde2plot_op(ax, x, y, grid, cmap)
+ kde2plot_op(ax, x, y, grid, cmap, **kwargs)
185
186
187
0 commit comments