"""
A simple, good-looking plot
===========================

Demoing some simple features of matplotlib
"""

import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt

fig = plt.figure(figsize=(5, 4), dpi=72)
axes = fig.add_axes([0.01, 0.01, .98, 0.98])
X = np.linspace(0, 2, 200)
Y = np.sin(2*np.pi*X)
plt.plot(X, Y, lw=2)
plt.ylim(-1.1, 1.1)
plt.grid()

plt.show()

[((10, 0, 10, 21), 'matplotlib.use', 'matplotlib.use', ({(10, 15, 10, 20): '"""Agg"""'}, {}), "('Agg')", False, 'import matplotlib\n'), ((13, 6, 13, 40), 'matplotlib.pyplot.figure', 'plt.figure', (), '', True, 'import matplotlib.pyplot as plt\n'), ((15, 4, 15, 26), 'numpy.linspace', 'np.linspace', ({(15, 16, 15, 17): '0', (15, 19, 15, 20): '2', (15, 22, 15, 25): '200'}, {}), '(0, 2, 200)', True, 'import numpy as np\n'), ((16, 4, 16, 21), 'numpy.sin', 'np.sin', ({(16, 11, 16, 20): '2 * np.pi * X'}, {}), '(2 * np.pi * X)', True, 'import numpy as np\n'), ((17, 0, 17, 20), 'matplotlib.pyplot.plot', 'plt.plot', (), '', True, 'import matplotlib.pyplot as plt\n'), ((18, 0, 18, 19), 'matplotlib.pyplot.ylim', 'plt.ylim', ({(18, 9, 18, 13): '(-1.1)', (18, 15, 18, 18): '(1.1)'}, {}), '(-1.1, 1.1)', True, 'import matplotlib.pyplot as plt\n'), ((19, 0, 19, 10), 'matplotlib.pyplot.grid', 'plt.grid', ({}, {}), '()', True, 'import matplotlib.pyplot as plt\n'), ((21, 0, 21, 10), 'matplotlib.pyplot.show', 'plt.show', ({}, {}), '()', True, 'import matplotlib.pyplot as plt\n')]