How to save a 3D surface plot in 2D view in vector image format?
显示 更早的评论
surfc(x,y,z,'LineStyle','none')
view(2)
I try to save it as eps file, but matlab default setting save it as bitmap instead of vector format (it doesn't happen for 2D plot). I then go to Export Setup > Rendering > tick Custom renderer with painter (vector format), but it gives me the contour plot under 3D surface plot. I have tried to use surf() instead, but it gives me a blank graph. I think MatLab saves the XY plane without projection of Z values, instead of the figure in 2D view. Does anyone have an alternative solution? Thanks!
采纳的回答
更多回答(1 个)
There is a very popular function over at the File Exchange: export_fig which deals with correctly exporting figures from Matlab. Maybe this can help you!
2 个评论
Ang Feng
2020-5-10
from R2020a, Matlab allows you export vector graphics by using the exportgraphics function
Chockalingam Senthilnathan
2021-4-7
Worked like a charm for vectorising my 2D view of a surface plot thank you
类别
在 帮助中心 和 File Exchange 中查找有关 Printing and Saving 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!