how to display only bottom and left axis lines, but not right and top axis lines?
Ältere Kommentare anzeigen
Matlab plots by default draw 4 lines with tick marks on left, bottom, right and top. I wanted to create 2D plots similar to those in excel, in which only the bottom and left have axis and tick mark, while the line and ticks on right and top are not displaying. I tried set 'Box' to be 'off', but does not seem to work. Any suggestions on how to do this? thank you.
Akzeptierte Antwort
Weitere Antworten (2)
Andrew Hook
am 31 Okt. 2018
7 Stimmen
set(gca,'box','off') works. Note the lower case 'box'.
1 Kommentar
Frank Pernett
am 18 Jun. 2021
Thank you, better answer!
Jewel Jubic
am 31 Jan. 2012
Bearbeitet: John Kelly
am 12 Jun. 2014
0 Stimmen
Any more examples can you give...
Kategorien
Mehr zu Graphics Performance finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!