Matplotlib - Export and Publication Quality
What is wrong with this code snippet if the goal is to save a plot as a PDF?
import matplotlib.pyplot as plt
plt.plot([1, 2, 3])
plt.savefig('plotpdf') # no extension