MATLAB: How to remove default ticks from plot plot Hi, Could anybody tell how to remove the 150 and 200 tick labels from the axis. They are the default labels. I added the larger ones myself using the ticks option, but I cannot remove the default ones. Thank you Best Answer set(gca,'XTick',[]) Related SolutionsMATLAB: Remove gridline from plot Those are not grid lines: grid lines cross the entire axes. Those are tick marks.If you are fine to remove the tick labels along with the ticks thenset(gca, 'xtick', [])If you need to retain the tick labels but the tick marks should not be drawn thenset(gca, 'TickLength', [0 0])But perhaps you just wantset(gca, 'TickDir', 'out') MATLAB: Removing ticks Hi Hans,now I get it. In this special case you have to deactivate the xticklabels, too. This should works fine:A(1,1:21)= 100000:100020;B(1:100,1)= 1:100;C(1:100,1:21)=33;figure;pcolor(A,B,C)set(gca,'xtick',[])set(gca,'xticklabel',[])Best regards,Friedrich Related QuestionHow to remove the tic labels but not the marksRemove tick marks for axesIs there a way to remove individual tick labelsHow to remove ticks from the x-axisDeletting X and Y axes ticksHow to set x-axis labels under certain tick marks
Best Answer