When I make figures in python scripts, the default settings is to leave a white border around the figure. But when I use the command
import matplotlib.pyplot as plt
the white border is taken out. Leaving out bbox_inches='tight' will give you the default settings.