Matplotlib Plots Lose Transparency When Saving as .ps/.eps

前端 未结 7 1258
南旧
南旧 2020-12-01 05:01

I\'m having an issue with attempting to save some plots with transparent ellipsoids on them if I attempt to save them with .ps/.eps extensions.

Here\'s the plot sav

7条回答
  •  情歌与酒
    2020-12-01 05:40

    You can rasterize the figure before saving it to preserve transparency in the eps file:

    ax.set_rasterized(True)
    plt.savefig('rasterized_fig.eps')
    

提交回复
热议问题