I am trying to illustrate the definition in Example 2.8 in Boyd & Vandenberghe's Convex Optimization.

As I suspect, I should reach to something like the graph in Figure 2.13. but my plot looks different. I don't know what's wrong with my understanding.
This is my Python code:
import numpy as np
import matplotlib.pyplot as plt
import math
def MyPlot(x1, x2):
plt.plot(t, x1 * np.cos( t) + x2 * np.cos(2* t))
t = np.linspace(0, math.pi, 100) # Create a list of evenly-spaced numbers over the range
x1 = np.linspace(-10,10, 4)
x2 = np.linspace(-10,10, 4)
print ( x1)
for i in x1:
for j in x2:
MyPlot(i,j)
plt.show()
I got the following plot

but should have gotten the following
