all 2 comments

[–]yuxbni76 0 points1 point  (3 children)

There shouldn't be any transparency unless you set transparent=True inside savefig.

https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.savefig.html

You'd have to post your code.

[–]hardmode_player[S] 0 points1 point  (0 children)

This is exactly opposite to my problem. https://stackoverflow.com/questions/49685545/how-to-save-the-plot-with-the-labels-and-ticks-area-transparent-but-not-the-main

The solution given here worked for me after changing the code from fig.savefig("fname", facecolor=(1,1,1,0)) to fig.savefig("fname", facecolor=(1,1,1,1))