Matplotlib Is Currently Using Pdf, Method 1: Use the matplotlib.