Skip to content

Commit ab51b6a

Browse files
authored
Merge pull request #1586 from aloctavodia/master
traceplot: auto-scale the max value of y
2 parents 1a83358 + c8fdf88 commit ab51b6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc3/plots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,11 @@ def kdeplot_op(ax, data, prior=None, prior_alpha=1, prior_style='--'):
134134
ax.plot(x, np.exp(p), alpha=prior_alpha, ls=prior_style)
135135

136136
ax.plot(x, density)
137-
ax.set_ylim(bottom=0)
138137

139138
except LinAlgError:
140139
errored.append(i)
141140

141+
ax.set_ylim(ymin=0)
142142
if errored:
143143
ax.text(.27, .47, 'WARNING: KDE plot failed for: ' + str(errored), style='italic',
144144
bbox={'facecolor': 'red', 'alpha': 0.5, 'pad': 10})

0 commit comments

Comments
 (0)