Prev: heatmap
Next: FDA Tools and Simulink Help
From: Enrico on 15 Jul 2010 17:56 I created a GUIDE gui with a figure (axes1). I would like to be able to save only (axes1) to an image file (jpg) if just use saveas(handles.axes,'test.jpg'), it saves the the gui buttons along with the figure with most of the figure cut off. I tried creating a new figure and copying. This gave the same result, except in place of the gui buttons, I got a white box. The figure was still shifted over and it was still cut off. f = figure; copyobj(handles.axes1,f); saveas(f,'test.jpg'); How can I save just the image without the gui.
From: neil on 15 Jul 2010 23:52 "Enrico " <en(a)rcsnetwork.com> wrote in message <i1o05m$c4o$1(a)fred.mathworks.com>... > I created a GUIDE gui with a figure (axes1). > > I would like to be able to save only (axes1) to an image file (jpg) > > if just use saveas(handles.axes,'test.jpg'), it saves the the gui buttons along with the figure with most of the figure cut off. > > I tried creating a new figure and copying. This gave the same result, except in place of the gui buttons, I got a white box. The figure was still shifted over and it was still cut off. > > f = figure; > copyobj(handles.axes1,f); > saveas(f,'test.jpg'); > > > How can I save just the image without the gui. See this post http://www.mathworks.com/matlabcentral/newsreader/view_thread/286208#760378
From: Enrico on 16 Jul 2010 09:28 > > See this post > http://www.mathworks.com/matlabcentral/newsreader/view_thread/286208#760378 I tried that but I got the same result. my GUI has the controls on the left and the figure on the right. when I copy the figure over, I do not see the controls, but the whole picture is shift over to the right leaving a space where the controls use to be. Also, eventhough, it copied the whole thing, the new figure is not sized to the whole picture so when I print or save, it is cut off.
|
Pages: 1 Prev: heatmap Next: FDA Tools and Simulink Help |