Filter löschen
Filter löschen

Remove white/blank space from plot

18 Ansichten (letzte 30 Tage)
Luccas S.
Luccas S. am 11 Aug. 2022
Beantwortet: Rik am 11 Aug. 2022
Is there any way to remove the areas or reduce the blank parts of the plot as much as possible?
  3 Kommentare
Luccas S.
Luccas S. am 11 Aug. 2022
I'm saving the images as eps, using saveas()
Adam Danz
Adam Danz am 11 Aug. 2022
Use exportgraphics and if that doesn't give you a the clipping you want, create the axes with tiledlayout using padding='tight'.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Rik
Rik am 11 Aug. 2022
This answer will only work for raster images (so it will not work for eps).
I use a pragmatic approach. I export in high resolution to a raster image and then use the attached function to crop the border. It is not optimal, but it allows me to use the default for most graphics functions, while still ending up with border-less image.

Kategorien

Mehr zu Printing and Saving finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by