"exportgraphics" lengthens the height of EPS
Show older comments
Hi, I am using MATLAB function "exportgraphics" to export some EPS files. I am facing following two problems.
There is an option for "exportgraphics" called "ContentType".
- If I set "ContentType" to "vector", then EPS files cannot keep transparency of the figure object I create.
- If I set "ContentType" to "image", then somehow EPS files will be lengthened in Y-axis so that the bottom part are missing.
Both above-mentioned problems do not exist for exporting PDF files by using exportgraphics.
Any comment helps!
4 Comments
Sandeep Mishra
on 16 Jan 2025
I tried exporting some random plot to eps format using both "ContentType" property in MATLAB R2023b, but i wasn't able to reproduce the issue.
Can you provide the code/issue screenshot which can be helpful in reproducing the issue?
Cunxin
on 16 Jan 2025
Sandeep Mishra
on 16 Jan 2025
For the statement: If I set "ContentType" to "vector", then EPS files cannot keep transparency of the figure object I create.
Can you please explain the above statement? Are you applying a background color to the figure that is not appearing in the EPS file?
Cunxin
on 16 Jan 2025
Answers (0)
Categories
Find more on Printing and Saving in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!