Exporting an Axes in a GUI as a .tiff file

1 view (last 30 days)
ZedRedLed
ZedRedLed on 26 Oct 2018
Commented: ZedRedLed on 8 Nov 2018
Hello,
I have a GUIDE GUI with an axes object that displays a relatively tall graph. I would like to save it as a .tiff and so far I created an empty figure, used copyobj to duplicate my axes and then export it with saveas.
This however messes up the sizes and aspect ratios. Part of the image is cut off and the image is not centered, leaving a large empty white space.
How can I save an axes while maintainig the correct aspect ratio and size and fill the entire image?
Thanks in advance!
  2 Comments
ZedRedLed
ZedRedLed on 8 Nov 2018
Thanks, of all the things I tried with PaperPosition this one worked like a charm!

Sign in to comment.

Answers (0)

Categories

Find more on Printing and Saving in Help Center and File Exchange

Products


Release

R2015b

Community Treasure Hunt

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

Start Hunting!