3D axes ticks get truncated when figure window is not maximized

조회 수: 3 (최근 30일)
Cesium Modern
Cesium Modern 2023년 3월 7일
답변: Voss 2023년 3월 7일
I have a plot with axis titles that have large font-size. I would like to save the plot when the figure window snaps to the left or right (i.e. takes 50% of my screen), however, this truncates the ticks for my plot.
I prefer the 50% snapped view as it does not stretch my plot
50% snapped to the left
100% maximized figure window
How can I fix this without changing my font size (I have used the xlim([928 933]) command to ensure the axis limits are constant, the odd ticks disappear when my figure window size is reduced, I would like to see these ticks at this window size)

답변 (1개)

Voss
Voss 2023년 3월 7일
Set the xticks manually (like you set the xlim manually):
xticks(928:933)
Maybe the yticks too:
yticks(200:100:600)

카테고리

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

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by