Complete the code to save the plot as a vector graphic.
plt.savefig('plot.[1]')
SVG is a vector graphic format, which keeps the image sharp at any size.
Complete the code to save the plot as a raster image with high resolution.
plt.savefig('plot.png', dpi=[1])
300 dpi is a common high resolution for raster images, making them clear.
Fix the error in the code to save a vector graphic with matplotlib.
plt.savefig('figure.[1]')
SVG is a vector format supported by matplotlib for saving vector graphics.
Fill both blanks to create a plot and save it as a vector graphic.
plt.plot(x, y) plt.[1]('output.[2]')
Use savefig to save the plot and svg as the vector file format.
Fill all three blanks to save a raster image with high resolution and display it.
plt.plot(data) plt.savefig('image.[1]', dpi=[2]) plt.[3]()
PNG is a raster format, 300 dpi gives high resolution, and show() displays the plot.
