Different output figure by export_fig and save function in gui

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 件のコメント

Walter Roberson
Walter Roberson 2015 年 10 月 6 日
That does not FaceColorData does not sound like Alpha data to me?
ChihChin Hsu
ChihChin Hsu 2015 年 11 月 3 日
I follow the steps from the web page.
I feel confused that the figure widow is correct, how come the output image is incorrect??

サインインしてコメントする。

 採用された回答

Yair Altman
Yair Altman 2015 年 11 月 18 日

0 投票

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.

その他の回答 (1 件)

Jan
Jan 2015 年 11 月 3 日

0 投票

Do you create an EPS file? Then the answer is easy: EPS does not support transparency.

1 件のコメント

ChihChin Hsu
ChihChin Hsu 2015 年 11 月 3 日
I don't think so. As you can see in the figure, they all have transparent part near the curve.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

質問済み:

2015 年 10 月 6 日

回答済み:

2015 年 11 月 18 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by