Skip to content

Commit 2d632de

Browse files
committed
DOC Improve axes doc string in response to #1577.
1 parent 784a773 commit 2d632de

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pymc3/plots.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ def traceplot(trace, varnames=None, transform=lambda x: x, figsize=None,
4848
prior_style : str
4949
Line style for prior plot. Defaults to '--' (dashed line).
5050
ax : axes
51-
Matplotlib axes. Defaults to None.
51+
Matplotlib axes. Accepts an array of axes, e.g.:
52+
53+
>>> fig, axs = plt.subplots(3, 2) # 3 RVs
54+
>>> pymc3.traceplot(trace, ax=axs)
55+
56+
Creates own axes by default.
5257
5358
Returns
5459
-------

0 commit comments

Comments
 (0)