Log in to edit a copy.
Download.
Other published documents...
Demo for Eric
161 days ago by ijstokes
a = range(10) for i in a: print i*2
0 2 4 6 8 10 12 14 16 18
0 2 4 6 8 10 12 14 16 18
a
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
import numpy as np import matplotlib import matplotlib.pyplot as plt matplotlib.rcParams['axes.unicode_minus'] = False fig = plt.figure() ax = fig.add_subplot(111) ax.plot(10*np.random.randn(100), 10*np.random.randn(100), 'o') ax.set_title('Using hypen instead of unicode minus') plt.show()