Skip to content

Commit 7bd94c7

Browse files
committed
relocate arviz style line position
1 parent e4f72a1 commit 7bd94c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc3/distributions/continuous.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4230,12 +4230,12 @@ class Interpolated(BoundedContinuous):
42304230
import pymc3 as pm
42314231
import arviz as az
42324232
from scipy.stats import gamma
4233+
plt.style.use('arviz-darkgrid')
42334234
rv = gamma(1.99)
42344235
x = np.linspace(rv.ppf(0.01),rv.ppf(0.99), 1000)
42354236
points = np.linspace(x[0], x[-1], 50)
42364237
pdf = rv.pdf(points)
42374238
interpolated = pm.Interpolated.dist(points, pdf)
4238-
plt.style.use('arviz-darkgrid')
42394239
fig, ax = plt.subplots(1, 1)
42404240
ax.plot(x, rv.pdf(x), 'C0', linestyle = '--', label='Original Gamma pdf',alpha=0.8,lw=2)
42414241
ax.plot(points, pdf, color='black', marker='o', label='Lattice Points',alpha=0.5,linestyle='')

0 commit comments

Comments
 (0)