Réponse acceptée

Walter Roberson
Walter Roberson le 25 Jan 2022

1 vote

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');

Plus de réponses (1)

Kevin Holly
Kevin Holly le 25 Jan 2022

0 votes

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 commentaires

Abhijit Sardar
Abhijit Sardar le 25 Jan 2022
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 le 25 Jan 2022
See Walter's answer. His answer works for multiple axes.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Graphics Object Properties dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by