I want to remove grilines completely. I just have the .fig file

 채택된 답변

Walter Roberson
Walter Roberson 2022년 1월 25일

1 개 추천

filename = 'something.fig';
fig = openfig(filename);
ax = findobj(fig, 'type', 'axes');
set(ax, 'XGrid', 'off', 'YGrid', 'off', 'ZGrid', 'off', 'XMinorGrid', 'off', 'YMinorGrid', 'off', 'ZMinorGrid', 'off');

추가 답변 (1개)

Kevin Holly
Kevin Holly 2022년 1월 25일

0 개 추천

After opening the figure, you can type the following assuming there is only one axes on the figure:
grid off
or
grid(gca,'off') %The first input target the axes. gca stands for get current axes.

댓글 수: 2

Abhijit Sardar
Abhijit Sardar 2022년 1월 25일
there are two axis that is th problem. otherwise grid off would have worked. ok , where should i type this line.
Kevin Holly
Kevin Holly 2022년 1월 25일
See Walter's answer. His answer works for multiple axes.

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

카테고리

도움말 센터File Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

태그

질문:

2022년 1월 25일

댓글:

2022년 1월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by