Skip to content

Commit 4953515

Browse files
aloctavodiatwiecki
authored andcommitted
auto-scale the max value of y when njobs > 1 (#1648)
1 parent 7c8cd15 commit 4953515

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pymc3/plots.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def traceplot(trace, varnames=None, transform=lambda x: x, figsize=None,
104104
lw=1.5, alpha=alpha)
105105
except KeyError:
106106
pass
107-
107+
ax[i, 0].set_ylim(ymin=0)
108108
plt.tight_layout()
109109
return ax
110110

@@ -132,8 +132,6 @@ def kdeplot_op(ax, data, prior=None, prior_alpha=1, prior_style='--'):
132132

133133
ax.plot(x, density)
134134

135-
ax.set_ylim(ymin=0)
136-
137135

138136
def make_2d(a):
139137
"""Ravel the dimensions after the first.

0 commit comments

Comments
 (0)