Azzera filtri
Azzera filtri

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

3 visualizzazioni (ultimi 30 giorni)
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

Risposte (0)

Categorie

Scopri di più su Specifying Target for Graphics Output in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by