필터 지우기
필터 지우기

Axis 'boxstyle' 'full' only works if 'xaxislocation' is 'origin'!!

조회 수: 4 (최근 30일)
Luc Masset
Luc Masset 2018년 1월 24일
답변: Jordy Jose 2018년 1월 31일
Another one ...
Try this:
figure;surf(peaks);view(2);axis tight;shading interp;box on
set(gca,'BoxStyle','full','XAxisLocation','bottom')
Now try:
set(gca,'XAxisLocation','origin')
And that's ok!
I'm on Matlab R2017b under Windows 10 64 bits

답변 (1개)

Jordy Jose
Jordy Jose 2018년 1월 31일
Hi Luc,
The box is actually there but the surface is being rendered on top of it (because the axis is tight). You can render the rulers on top of the surface by setting the layer to 'top' on the axes.
a = gca; a.Layer = 'top'
Another workaround is to keep the rulers on layer 'bottom,' but increase the LineWidth of the axes. A value of 1.5 or greater should work.

카테고리

Help CenterFile Exchange에서 Formatting and Annotation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by