Can someone please explain why the code below does not work when setting the facecolor of the figure?
import matplotlib.pyplot as plt # create figure instan
I had to use the transparent keyword to get the color I chose with my initial
fig=figure(facecolor='black')
like this:
savefig('figname.png', facecolor=fig.get_facecolor(), transparent=True)