Skip to content

Commit

Permalink
auto-scale the max value of y when njobs > 1 (#1648)
Browse files Browse the repository at this point in the history
  • Loading branch information
aloctavodia authored and twiecki committed Jan 8, 2017
1 parent 7c8cd15 commit 4953515
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pymc3/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def traceplot(trace, varnames=None, transform=lambda x: x, figsize=None,
lw=1.5, alpha=alpha)
except KeyError:
pass

ax[i, 0].set_ylim(ymin=0)
plt.tight_layout()
return ax

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

ax.plot(x, density)

ax.set_ylim(ymin=0)


def make_2d(a):
"""Ravel the dimensions after the first.
Expand Down

0 comments on commit 4953515

Please sign in to comment.