changed the function save_plot to save_figure for consistency and added a tight bounding box on save so the blank space in the figure will be removed.