Exporting from matplotlib
import matplotlib.pyplot as plt
import numpy as np
file = plt.figure()
plt.plot(np.arange(0,60+1), X)
plt.xlabel('t') 
plt.ylabel('x(t)') 
plt.title('title')
plt.show()
file.savefig("MyFile.pdf")