将matlab绘制的结果复制为矢量图时,去除背景的操作如下:
- 先打开/绘制图形窗口(不要关闭)
- 在命令行终端输入
axis off
关闭坐标系 - 继续在命令行终端分别输入:
ax = gca;
copygraphics(ax,'ContentType','vector','BackgroundColor','none');
此时,背景透明的矢量图就保存在系统剪贴板上了,详情可参考Matlab官方文档
将matlab绘制的结果复制为矢量图时,去除背景的操作如下:
axis off
关闭坐标系ax = gca;
copygraphics(ax,'ContentType','vector','BackgroundColor','none');