Effacer les filtres
Effacer les filtres

Hiding x and y axes, but leaving top and right axes visible?

1 vue (au cours des 30 derniers jours)
Erik J
Erik J le 9 Oct 2018
Commenté : Erik J le 10 Oct 2018
I have a plot and I want to leave the top and right axes but hide the traditional x and y axes. I cannot figure out a way to do this. Any ideas? Thank you!

Réponse acceptée

Kevin Chng
Kevin Chng le 9 Oct 2018
Hi Erik,
plot([0 1],[0 1])
set(gca,'XAxisLocation','top','YAxisLocation','right');
Is this what you want?

Plus de réponses (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by