Contents
import numpy as np
import matplotlib.pyplot as plt
pi = np.pi
plt.rc('font', size=12)

xs = np.linspace(0, 2*pi, 50)
ys = np.sin(xs)
zs = np.cos(xs)

fig, ax = plt.subplots()

ax.plot(xs, ys, label="sin(t)")
ax.plot(xs, zs, label="cos(t)")

ax.set_xlabel("Angle t (radians)")
ax.set_ylabel("f (t)")
ax.set_title("The functions sin(t) and cos(t)")

ax.legend(loc=(1,0))

ax.set(xlim=(0, pi), ylim=(0, 1))

fig.show()