python保存图片到adobe illustrator中

python保存图片到adobe illustrator中

# 保存图片的code  svg 有点小bug,ai中没有识别到坐标轴(网格)
savePath = r'a'
fig, ax = plt.subplots()
sns.lineplot(data=df, x="x", y="y")
plt.savefig(r"{}/lightTrace.svg".format(savePath), format="svg", transparent=True)
print("finished")

# 保存图片的code  pdf没有报错,但是结果基本上一样
savePath = r'a'
fig, ax = plt.subplots()
sns.lineplot(data=df, x="x", y="y")
plt.savefig(r"{}/lightTrace.pdf".format(savePath), format="pdf", transparent=True)
print("finished")
posted @   bH1pJ  阅读(56)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 三行代码完成国际化适配,妙~啊~
· .NET Core 中如何实现缓存的预热?
点击右上角即可分享
微信分享提示