Matplotlib - Export and Publication Quality
You want to save the same plot in three formats: PNG, SVG, and PDF. Which code snippet correctly saves the plot in all three formats?
plt.savefig(). plt.plot([1,2,3],[3,2,1])
plt.save('plot.png')
plt.save('plot.svg')
plt.save('plot.pdf') uses plt.save(), which is invalid.format argument, ensuring correct file type saving.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions