フィルターのクリア

How to save BMP file graphs that contain both imagesc and plot

3 ビュー (過去 30 日間)
Avri
Avri 2013 年 12 月 25 日
編集済み: Avri 2013 年 12 月 25 日
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 件)

カテゴリ

Help Center および File ExchangeSpecifying Target for Graphics Output についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by