a command for having the ygrid on only , on figure , with set(gca , ),, ... .. ...How ?

125 views (last 30 days)
, So I dont have to take out the xgrid manualy for big number of figures
Thanks

Accepted Answer

Walter Roberson
Walter Roberson on 22 Dec 2012
set(gca, 'YGrid', 'on', 'XGrid', 'off')
  5 Comments
Ibrahim Greiby
Ibrahim Greiby on 22 Dec 2012
Edited: Ibrahim Greiby on 22 Dec 2012
Sorry I had to go away Now I got it thank you Walter and image anlayst
this is example
set(figure,'Units','inches','Position',[7 0.5 7 5],'DefaultAxesFontName','Arial', ... 'DefaultAxesFontSize',12,'DefaultAxesFontWeight','Normal');
y=rand(1,10);
% plot(y,'Color','r','Marker', 'o'); plot(y,'-.ms','lineWidth',1.5,'MarkerEdgeColor','m','MarkerFaceColor','g','MarkerSize',10); set(gca, 'YGrid', 'on', 'XGrid','off');
text(1,.7,['\fontsize{16}Thanks {\color{magenta}for '... '\color[rgb]{0 .5 .5}your \color{red}concern} and answer It help allot']) legend(gca,'Thank you \circALLOOOT','location','northeast'); box on ylabel('y','FontSize',12,'fontweight','Normal'); xlabel('x','FontSize',12,'fontweight','Normal');

Sign in to comment.

More Answers (0)

Categories

Find more on File Operations in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!