scatter plot covers the axes values

조회 수: 5 (최근 30일)
Sajid Afaque
Sajid Afaque 2020년 5월 27일
댓글: Sajid Afaque 2020년 5월 29일
i have my scatter plot shown above. i have increased the marker size to distinguish clearly between colors.
but since i have increased my marker size ,my values on the axes are overlapped. they are not visible clearly(for example 14 on the y -axis is completely covered by blue color, similarly 16 on the horizontal axis )
is their any way where i can push my axes value further from the axes line.

답변 (1개)

Rik
Rik 2020년 5월 27일
If you manually set the tick labels you can set an arbitrary distance between the axis and the label. If this doesn't work you might have to hack your x-ticks with text objects.
plot(rand(10,2))
t=get(gca,'XTickLabels');
t=cellfun(@(v) sprintf('\\newline%s',v),t,'UniformOutput',0);
set(gca,'XTickLabels',t)
t=get(gca,'YTickLabels');
t=cellfun(@(v) sprintf('%s ',v),t,'UniformOutput',0);
set(gca,'YTickLabels',t)
  댓글 수: 3
Rik
Rik 2020년 5월 28일
Which release are you using? You might have to set a LaTeX interpreter explicitly, or it might not be possible at all on your release.
Sajid Afaque
Sajid Afaque 2020년 5월 29일
2013b

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by