remove grid lines completely
조회 수: 17 (최근 30일)
이전 댓글 표시
I want to remove grilines completely. I just have the .fig file
댓글 수: 0
채택된 답변
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개)
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
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!