How to save a plot as an image with titles and x y lables
11 views (last 30 days)
Show older comments
Yeah I want to save a plot I have on my GUI, with the title and axis labels on the image.
F = getframe(handles.axes2);
Image = frame2im(F);
imwrite(Image, 'Image.jpg')
This code saves what's on the axes on the GUI but it doesnt save any of the text around it.
any solutions?
0 Comments
Answers (1)
Image Analyst
on 25 Jun 2019
Click on the toolbar save icon (if you have the toolbar showing) or use File/SaveAs (if youhave the pulldown menu showing).
Or do it from code with export_fig
2 Comments
Image Analyst
on 25 Jun 2019
You can still use export_fig or saveas() from the code. Make a pulldown menu or button to let the user do the save, and in the callback, call saveas() or export_fig().
See Also
Categories
Find more on Printing and Saving in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!