我在Matlab中有一个用于保存eps格式的图.如果我使用图中的交互式菜单这样做,一切都很顺利,导出的eps很好.但是,如果我使用以下命令
saveas(gca, 'myplot.eps','psc2');
Run Code Online (Sandbox Code Playgroud)
但是,如果我这样做,导出的eps不会被剪裁,边距太大.如何在程序中保存没有保证金的eps?谢谢.
顺便说一句,如果我使用以下代码
saveas(gca, 'myplot.eps','eps');
Run Code Online (Sandbox Code Playgroud)
然后输出eps被剪裁,但它是黑色和白色而不是颜色.
qua*_*gar 25
只需将@ mola的答案与您已经拥有的答案结合起来:
saveas(gca, 'myplot.eps','epsc');
Run Code Online (Sandbox Code Playgroud)
注意c in 'epsc'
.