Closed gordontytler closed 2 years ago
Hi @gordontytler ,
Thanks for your feedback. The save_fig()
function is defined in the very first cell of this notebook.
It's just a thin wrapper around matplotlib's savefig()
function, which sets the file name, PNG format, 300 dpi resolution, and optionally a tight layout. You can safely delete the save_fig()
calls if you want, they're just here to save the figures for the book.
Hope this helps.
I think the save_fig function definition is missing in
https://colab.research.google.com/github/ageron/handson-ml2/blob/master/02_end_to_end_machine_learning_project.ipynb#scrollTo=Visualizing_Geographical_Data
To Reproduce I copied this code from colab and pasted into Jupyter running locally
Expected behavior Either no call to save_fig or a function definition provided. Not sure if this is matplotlib.pyplot.savefig