Open
Description
The lesson states the following in section Saving your plots as image files:
If you'd like to save your plots as an image file, you can run
fig.savefig('my_figure.png')
where "my_figure" is the file name.
This won't work, and it's non-trivial to recover to a way that it does:
- There is no variable
fig
here. Normally (in matplotlib documentation commonly found) this is the return value ofplt.figure()
, but we are not using this method here. Instead we useSeaborn.boxplot()
, which does not return an equivalent value. plt.savefig()
would work (as one can find out from testing autocompletion alternatives), but appears to have to be in the same code cell as the one generating the plot. I.e., we can't just insert a new cell here and run this method.