Problem saving plot as jpg or pdf
Ältere Kommentare anzeigen
My matlab code is saving the plot of 6 subplots. But, when I open the saved version, the legend is blocking the plots. I am also using the 'best' for location of legend. Is there any way to correct it so that plots occupy full space and legend don't block the plots?
3 Kommentare
dpb
am 5 Jul. 2022
Attach an example so we can see the symptoms -- also it would be best to create a minimal working example that recreates the problem folks can play with rather than try to duplicate something mimcking what may/may not be the issue.
Another Q? would be which MATLAB release and renderer are you using?
dpb
am 5 Jul. 2022
I don't have much direct experience w/ trying to export MATLAB graphics -- it's certainly been an arena of much discussion over the years...
With that many lines and subplots, the legend will have to be tiny to not occlude the data -- also with releases prior to R2020a which introduced exportgraphics, the only way to have any additional control over sizes, etc., is to use print instead of saveas -- it has no additional control available, "what you get is what you get".
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!