How do I remove the tick marks on a bar plot at the top and the right?
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
L'O.G. am 22 Jan. 2023
Kommentiert: Star Strider am 22 Jan. 2023
I can do this by box off but that also removes the lines. How can I keep the lines on the top and the right of the plot, but just remove the ticks there?
EDIT: The data in x is an array of variables of type categorical, which led to an error as indicated in a comment to one of the answers. The following leaves an undesirable gap at the beginning and end at the top of the plot:
Ax = gca;
Ax.Box = 'off';
xlim = get(gca,'xlim');
ylim = get(gca,'ylim');
line([xlim(1) xlim(2)],[ylim(2) ylim(2)])
Weitere Antworten (0)
Find more on Resampling Techniques 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!