필터 지우기
필터 지우기

Why are some characters chopped off on the bottom in plots?

조회 수: 1 (최근 30일)
David Walwark
David Walwark 2020년 1월 9일
댓글: David Walwark 2020년 1월 18일
Below is an example of text from a legend. The top line is chopped but the lower line is not.
matlabChoppedLetters.png
Here is some code that can generate the ugliness for you (unless I am mistaken). Just look at the Y-axis text.
figure;
plot([0,1],[0,1])
set(gca,'fontsize',18)
If you increase the fontsize to 19 or larger points then the issue seems to go away. What is going on?
  댓글 수: 2
Walter Roberson
Walter Roberson 2020년 1월 9일
Are you using... Ummm, let me think... R2015b?? On Linux??
There was a release which cut off text at the boundary on Linux systems. The easiest fix was to nudge the YLim to go down a bit further.
There was also an old release that the problem happened on Windows, and the solution had to do with changing the figure Renderer property.
David Walwark
David Walwark 2020년 1월 18일
I get these type of artifacts all the time, in previous versions and in 2019b. Should I be trying different renderers?

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

답변 (1개)

Hiro Yoshino
Hiro Yoshino 2020년 1월 9일
a.PNG
figure;
plot([0,1],[0,1],[0,1],[0,1])
set(gca,'fontsize',18)
legend('nissio', 'pop.');
Mine did work well with R2019b.
  댓글 수: 1
David Walwark
David Walwark 2020년 1월 9일
편집: David Walwark 2020년 1월 9일
I remarked my entire startup.m, restarted matlab, and ran the code again. I updated the question to reflect Matlab 2019b (on windows 10). Still having this issue.

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

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by