export_fig stretch figure making unreadable

조회 수: 1 (최근 30일)
Nik Rocky
Nik Rocky 2020년 7월 2일
댓글: Adam Danz 2020년 7월 6일
Hello,
I'm plotting many data points and want save it using export_fit function.
It saves this like:
and I want to have it like this (screenshot from stretched plot):
How can I do it?
Do you have an idea how better to locate this legend, its looks not so nice?
And how can I change a color of boarders (gray area) to white?
Thank you!

답변 (1개)

Adam Danz
Adam Danz 2020년 7월 2일
Is the problem with the fontsize? Is the export cropping the legend? Is the problem with the position of the legend?
You can set the legend location to SouthOutside.
You can change the gray figure background to white using fig.Color = 'w' where fig is your figure handle.
  댓글 수: 2
Nik Rocky
Nik Rocky 2020년 7월 3일
Hello Adam,
" Is the export cropping the legend?" - yes, my export figure is just legend (like my first figure) - see only legend
to other - thanks! - it is allready SouthOutside! =)
Adam Danz
Adam Danz 2020년 7월 6일
There are lots of options for the export_fig function. If you can't get any of the options to work for you and you think there's a problem with the function, you could contact the author of that function on his profile page.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Legend에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by