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!