MATLAB: Spy with grid spy() with grid? Does any one know how to addgrid when using spy() function? I tried to put 'grid on', but it failed. However, if I add 'grid minor', then it worked; but I dont want the minor grids to be diaplayed. Best Answer Many thanks. Related SolutionsMATLAB: How to see if grid is on get(AxesHandle,'XGrid')get(AxesHandle,'YGrid') MATLAB: Spy, making nodes more visible spy(sprand(10,10,.1))set(get(gca,'children'),'markersize',50,'color','r')get(gca,'children')ans = Line with properties: Color: [0 0 1] LineStyle: 'none' LineWidth: 0.5 Marker: '.' MarkerSize: 50 MarkerFaceColor: 'none' XData: [1 1 3 4 6 6 8 8 8 10] YData: [4 9 4 7 5 6 2 3 6 10] ZData: [1x0 double] Related QuestionAnyway to add grid based on right yyaxisHow to use “spy” at AppDesignerPlace grid on top of patchesMaking gif from series of a “spy” plotHow to remove axis from a sparsity plot with spy functionPlot3 – How to show the grid on only the XY-plane
Best Answer