How to set XTickLabel with equal width between the ticks?for 1,2, 127, and 128
Show older comments
width between 1 and 2 is small, similarly for 127 and 128. I need equal width for 1,2,127 and 128
2 Comments
Jan
on 19 Sep 2017
Please post how you have created this output. Then it is possible to show you how to fix the problem. Currently answering requires to guess all details and this is not efficient.
Star Strider
on 19 Sep 2017
That is not how MATLAB normally places its 'XTick' values. I suspect you are using code written by someone else that places the x-ticks at the x-coordinates of the data.
The solution is to remove (or comment-out) the set call that creates the x-tick locations you see in the plot you posted.
Accepted Answer
More Answers (0)
Categories
Find more on Grid Lines, Tick Values, and Labels in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!