Skip to content

Commit 66d7c5e

Browse files
author
Christopher Fonnesbeck
committed
Fixing MPL bug
1 parent 8fecec1 commit 66d7c5e

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

pymc/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313

1414
from .diagnostics import *
1515

16-
from .plots import *
16+
# from .plots import *
1717

1818
from .tests import test
1919

2020
from . import glm
21-
from .data import *
21+
from .data import *

pymc/examples/glm_robust.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def run(n=2000):
3737

3838
plt.plot(x, y, 'x')
3939
glm.plot_posterior_predictive(trace)
40-
# plt.show()
40+
plt.show()
4141

4242
if __name__ == '__main__':
4343
run()

pymc/examples/simpletest.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from pylab import *
1+
import matplotlib.pyplot as plt
22
from pymc import *
33
import numpy as np
44
import theano
@@ -27,16 +27,16 @@ def run(n=1000):
2727
with model:
2828
trace = sample(1e3, step)
2929

30-
subplot(2, 2, 1)
31-
plot(trace[x][:, 0, 0])
32-
subplot(2, 2, 2)
33-
hist(trace[x][:, 0, 0])
30+
plt.subplot(2, 2, 1)
31+
plt.plot(trace[x][:, 0, 0])
32+
plt.subplot(2, 2, 2)
33+
plt.hist(trace[x][:, 0, 0])
3434

35-
subplot(2, 2, 3)
36-
plot(trace[x][:, 1, 0])
37-
subplot(2, 2, 4)
38-
hist(trace[x][:, 1, 0])
39-
# show()
35+
plt.subplot(2, 2, 3)
36+
plt.plot(trace[x][:, 1, 0])
37+
plt.subplot(2, 2, 4)
38+
plt.hist(trace[x][:, 1, 0])
39+
plt.show()
4040

4141
if __name__ == '__main__':
4242
run()

0 commit comments

Comments
 (0)