Python绘制的图,能被放到adobe illustrator吗?
坑。
可以的;
1、which file type that Python out and adobe illustrator can feed
2、matplot output adobe illustrator file
或许pdf是关键:
Exporting from matplotlib to open in Adobe Illustrator
3、这是一个demo可以尝试一下:
非常好,eps文件确实可以在adobe中进行编辑;
都可以进行编辑
code如下:
import matplotlib as mpl import matplotlib.pyplot as plt import matplotlib.patheffects as pe mpl.rcParams['pdf.fonttype'] = 42 mpl.rcParams['ps.fonttype'] = 42 mpl.rcParams['svg.fonttype'] = 'none' x=[0,0,1, 2, 3, 4, 5, 6, 7, 8, 9, 10,11,12,13,13] y=[0,4,1, 8, 12, 6, 7, 4, 4, 1, 8, 12, 6, 7, 4, 0] plt.xlim(right=max(x)) #xmax is your value plt.xlim(left=0) #xmin is your value plt.ylim(top=max(y)) #ymax is your value plt.ylim(bottom=0) #ymin is your value plt.plot(x,y) plt.text(0.5, 12, 'Rotate text', va='top',ha='right', rotation=90,zorder=20, wrap=True,size=10,color='g',path_effects=[pe.withStroke(linewidth=5, foreground='w')]) plt.savefig("test.eps") plt.savefig('test.pdf') plt.savefig('test.svg') plt.show() plt.clf()