How to save BMP file graphs that contain both imagesc and plot
1 回表示 (過去 30 日間)
古いコメントを表示
I generated GUI with panel (UIpanel Master). All graphs in the function are presented into the UIpanel and have preliminary code as follows:
h = uipanel('Parent',handles.UIpanel_Master);
axes('Parent',h);
I would like to save all graphs into file (BMP format) but I don’t know how to save when the graph contain both imagesc and plot function as shown below:
h = uipanel('Parent',handles.UIpanel_Master);
axes('Parent',h);
imagesc(I)
title('Smooth Far Field’)
axis equal tight off
colorbar
hold on
plot(cx+full_NA_circ_x-10,cy+full_NA_circ_y-7,'--*g')
hold off
legend('Full 0.22 NA','Center of Mass','NA 0.04/0.08')
I tried imwrite and saveas but the problem is in this code there are imagesc and plot (and colorbar, title and legend) thus the BMP file has a screenshot the entire GUI
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Specifying Target for Graphics Output についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!