Matplotlib - Export and Publication Quality
Why does this code not produce a transparent background in the saved image?
import matplotlib.pyplot as plt
fig, ax = plt.subplots(facecolor='white')
ax.plot([1, 2, 3])
fig.savefig('output.png', transparent=True)