Different output figure by export_fig and save function in gui
조회 수: 6 (최근 30일)
이전 댓글 표시
Hi there, I used aDot.MarkerHandle.FaceColorData = uint8(255*[LineColor(g,:) 0.5]') to change the alpha value of the plot. The figure should looks like this

but if I use export_fig, print or saveas function, the output color becomes like this

though by press the save button in file menu the transparent color is correct, the resolution is poor. Can some one help me to solve this problem??
Thanks, Heather.
댓글 수: 2
채택된 답변
Yair Altman
2015년 11월 18일
export_fig, print and saveas only support foreground transparency in export to PNG files, and then only for patches. Read export_fig's documentation for details.
Even so, the techniques I mentioned in UndocumentedMatlab for achieving on-screen marker and line transparency do not work when exporting, to any format, because the plot gets reset by the print command (which is used by export_fig) in preparation for printing.
Instead of the above, I suggest that you use the ScreenCapture utility, which does not rely on the print function.
댓글 수: 0
추가 답변 (1개)
Jan
2015년 11월 3일
Do you create an EPS file? Then the answer is easy: EPS does not support transparency.
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!