print command prints wrong figure

Hello together,
i've got a problem with the following command line:
set(fig1,'PaperPositionMode','auto')
print([handles.folder_name,'\',dat_name],'-dpng','-r300')
it's included in a bushbutton callback function in a GUI
Instead of saving the right figure i get a picture of the GUI itself
Does anyone have an idea?

Respuestas (1)

Image Analyst
Image Analyst el 1 de Sept. de 2016

0 votos

The GUI IS the figure. Did you perhaps mean an axes control ON the figure? then use export_fig

1 comentario

Christian Müller
Christian Müller el 1 de Sept. de 2016
Maybe i was inaccurate...
I've got a GUI with a few pushbuttons. One of them creates a new figure with a Plot which i want so safe as a *.png file. But instead of saving the plot i get a picture of the GUI.

Iniciar sesión para comentar.

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 1 de Sept. de 2016

Comentada:

el 1 de Sept. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by