remove grid lines completely
17 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Abhijit Sardar
le 25 Jan 2022
Commenté : Abhijit Sardar
le 25 Jan 2022
I want to remove grilines completely. I just have the .fig file
0 commentaires
Réponse acceptée
Walter Roberson
le 25 Jan 2022
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
le 25 Jan 2022
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
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!