Borrar filtros
Borrar filtros

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

3 visualizaciones (últimos 30 días)
Avri
Avri el 25 de Dic. de 2013
Editada: Avri el 25 de Dic. de 2013
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

Respuestas (0)

Categorías

Más información sobre Specifying Target for Graphics Output en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by