Session Ready
Exercise

Saving a file several times

If you want to share your visualizations with others, you will need to save them into files. Matplotlib provides as way to do that, through the savefig method of the Figure object. In this exercise, you will save a figure several times. Each time setting the parameters to something slightly different. We have provided and already created Figure object.

Instructions 1/3
undefined XP
  • 1

    Examine the figure by calling the plt.show() function.

    • 2

      Save the figure into the file my_figure.png, using the default resolution.

    • 3

      Save the figure into the file my_figure_300dpi.png and set the resolution to 300 dpi.