Is it possible to use yticks only on one side?
Afficher commentaires plus anciens
Is it possible to use yticks only on one side? How to set?
5 commentaires
madhan ravi
le 5 Oct 2018
can you post your code?
Adam
le 5 Oct 2018
YTicks are only on one side by default.
Mr M.
le 5 Oct 2018
Mr M.
le 5 Oct 2018
Adam
le 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.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Graphics Object Properties dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!