The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: graphics: minor ticks position
Replies: 10   Last Post: Oct 26, 2016 7:44 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
David Erickson

Posts: 1
Registered: 2/5/14
Re: graphics: minor ticks position
Posted: Feb 5, 2014 6:08 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

If you don't mind the ticks being the same size then you can substitute major ticks for the minor ticks. To get rid of the labels you have to manually set the labels so that some of them are empty strings.

For example:
xtvect = [-2 -1.5 -1 -0.5 0 0.5 1 1.5 2];
set(gca, 'XTick', xtvect);
set(gca, 'XTickLabel', '-2||-1||0||1||2');

"Baerbel" wrote in message <ib13bj$76i$>...
> Hello,
> is there a way to control the position of minor ticks at axes? I know that I can control the position of the ticks by XTick but what about minor ticks?
> I would like to have a graph with major annotated ticks and smaller minor ticks but if I choose minor ticks in the Edit Axes Ticks window, the minor ticks are not at the right position.
> Thanks for your help!

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.