hillyard's blog

Removing white space around matplotlib figures

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.

Syndicate content