フィルターのクリア

export_fig of multiple overlayed images only saves one image

1 回表示 (過去 30 日間)
Saad khalid
Saad khalid 2023 年 11 月 13 日
コメント済み: DGM 2023 年 11 月 16 日
I have two imagesc's overlayed to make a figure (which is attached). I would like to save this figure as a pdf using export_pdf, however when I save it, it only saves one of the pieces (the blue ring) and does not save the orange circle in the middle. I'm not really sure why it is treating the two pieces differently. I am on matlab 2019a.
  2 件のコメント
Steven Lord
Steven Lord 2023 年 11 月 16 日
With which inputs are you calling export_pdf? Are you calling it with a figure or axes handle indicating the graphics object(s) you want to export or are you calling it with an image handle to export?
DGM
DGM 2023 年 11 月 16 日
What function are you actually using? The title says export_fig(), but then you say export_pdf(), which isn't anything I can find anywhere. So we don't know what function you're using or how you're trying to use it.
FWIW:
hf = open('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1538050/spherical%20bubble%202comp%20Nb50%20Nm330.fig')
export_fig(hf,'test.pdf')
The output is attached.

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

回答 (1 件)

Cedric Kotitschke
Cedric Kotitschke 2023 年 11 月 16 日
Why not use saveas?
saveas(gcf,'figname.pdf')

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by