Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 29fbf4f

Browse files
committed
Corrected missing numpy import
1 parent c016705 commit 29fbf4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/pylab_examples/stix_fonts_demo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import re
66
import gc
77
import matplotlib.pyplot as plt
8+
import numpy as np
89

910
stests = [
1011
r'$\mathcircled{123} \mathrm{\mathcircled{123}} \
@@ -30,7 +31,7 @@ def doall():
3031
plt.plot([0, 0], 'r')
3132
plt.grid(False)
3233
plt.axis([0, 3, -len(tests), 0])
33-
plt.yticks(arange(len(tests)) * -1)
34+
plt.yticks(np.arange(len(tests)) * -1)
3435
for i, s in enumerate(tests):
3536
plt.text(0.1, -i, s, fontsize=32)
3637

0 commit comments

Comments
 (0)