Is it possible to use yticks only on one side?
Show older comments
Is it possible to use yticks only on one side? How to set?
5 Comments
madhan ravi
on 5 Oct 2018
can you post your code?
Adam
on 5 Oct 2018
YTicks are only on one side by default.
Mr M.
on 5 Oct 2018
Mr M.
on 5 Oct 2018
Adam
on 5 Oct 2018
I can't actually see any way to turn them off using sensible functionality. For the y ticks specifically you can use an ugly hack e.g.:
figure; imagesc( magic(25) )
yyaxis right
set( gca, 'YTick', [] )
set( gca, 'YColor', 'k' )
though I don't know a way to do it for the x axis and the above is horrible code. yyaxis is an ugly function since it gives no possibility to actually return the axis handle and instead just changes what is the current axes.
Accepted Answer
More Answers (0)
Categories
Find more on Axis 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!