triangles

plot(t, t, ‘r–’, t, t**2, ‘bs’, t, t**3, ‘g^’)

plt.plot(x,y,‘r–’, linewidth=1.0)

when lines= plt.plot(x1,y1,x2,y2)

and the use of subplot() command

plt.figure(1) # the first figure plt.subplot(211) # the first subplot in the first figure plt.plot([1, 2, 3]) plt.subplot(212) # the second subplot in the first figure plt.plot([4, 5, 6])

plt.figure(2) # a second figure plt.plot([4, 5, 6]) # creates a subplot(111) by default

plt.figure(1) # figure 1 current; subplot(212) still current plt.subplot(211) # make subplot(211) in figure1 current plt.title(‘Easy as 1, 2, 3’)

plt.title(r’\(\sigma_i=15\)’) starting with dollar in regex