comp.soft-sys.matlab - The MathWorks calculation and visualization package.
I am also looking for an answer to this question. Matlab automatically sets the number of minor ticks. Is there a way to set it to "manual"
Is there any way of adding labels to the minor ticks, or some equivalent?
I would like to plot values for the past 30 days or so, with the date on the X axis and the value on the Y axis. Matlab is smart enough to plot major ticks every 7 days, and label each of those how I want. However, when I ask for minor ticks, Matlab insists on plotting 10 minor ticks between each major tick, even though there are 7 days between each major tick. Shouldn't Matlab attempt to use different logic to automatically create minor ticks when datetick has been applied to the axis, instead of just using a round number like 5 or 10 for the number of minor ticks?
Try this: set(gca,'xtick',) - Brian "Wee Jin Goh" < XXXX@XXXXX.COM > wrote in message news: XXXX@XXXXX.COM ... > This sounds like a simple question, but I've had a very hard time > figuring it out. > > How do I remove the tick marks and tick labels from the axis of a > graph? I've searched Google, and I've searched the MATLAB > documentation. > > I've tried the following: > set(gca,'XMinorTick', 'off'); > set(gca, 'XTickMode', 'manual'); > set(gca, 'XTickLabelMode', 'manual'); > > and still the tick marks appear. > > The only time I'm able to get rid of the is when I call axis off, but > then I don't even get the axis labels (which I want) anymore. > > Any help would be appreciated. > Wee-Jin