필터 지우기
필터 지우기

remove grid lines completely

조회 수: 17 (최근 30일)
Abhijit Sardar
Abhijit Sardar 2022년 1월 25일
댓글: Abhijit Sardar 2022년 1월 25일
I want to remove grilines completely. I just have the .fig file

채택된 답변

Walter Roberson
Walter Roberson 2022년 1월 25일
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
Abhijit Sardar
Abhijit Sardar 2022년 1월 25일
This actually works. Thank you so much

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

추가 답변 (1개)

Kevin Holly
Kevin Holly 2022년 1월 25일
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.

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by