Hello, I am creating a figure with matplotlib and want the legend background to be transparent, I did this with:
lg = matplotlib.pyplot.legend(labels,markerscale=0)
lg.legendPatch.set_alpha(0.0)
And when i ran it it works but when I save it to an eps (which is the format I need it in) The legend is no longer transparent. When I save it as a jpeg, the legend IS transparent. I understand eps is a more complicated and layer image but is there anyway I can make the legend background transparent that will hold even when saved as an eps?
Thank you!