MATLAB >> Minor tick location

by Steve Irwin » Thu, 13 Apr 2006 14:11:22 GMT

Is it possible to specify the location/spacing of minor ticks?

A search through the archives only found ways of doing this using rather
extravagant methods. Surely there's an easy way.

Lata,
Steve

MATLAB >> Minor tick location

by Doug Schwarz » Thu, 13 Apr 2006 20:46:17 GMT


In article <eYl%f.1029$ XXXX@XXXXX.COM >,




As far as I know, it has always, and continues to be, possible only to
turn minor ticks on and off. There's no way to control where they are.
All you can do is turn them off and draw some yourself with small line
segments.

--
Doug Schwarz
dmschwarz&ieee,org
Make obvious changes to get real email address.

Similar Threads

1. minor grid placements using our own function to draw minor ticks - MATLAB

2. minor tick question

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"

3. How to set up minor tick in MATLAB? - MATLAB

4. minor tick labels

Is there any way of adding labels to the minor ticks, or some
equivalent?

5. Minor ticks on log axes - MATLAB

6. Minor ticks not placed on each day when datetick applied

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?

7. Adjusting spacing between minor tick labels - MATLAB

8. Tick marks and tick labels on graphs

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