Show tick marks above plot
81 views (last 30 days)
Show older comments
Bernoulli Lizard on 4 Feb 2013
Commented: Maciej Dabrowski on 1 Dec 2020
I have a 3D plot that I am viewing from the top, so that it looks like a 2D plot. How can I display the tick marks above the plot? I tried using
set(gca, 'Layer', 'top')
but that only brought the major tick marks to the top and left the minor tick marks hidden. Worse, it also brought the dotted gridlines, which I do not want to see, to the top.
itamar luzon on 25 Dec 2018
I know it's been a long time, but
use this after ploting
junlong on 17 Mar 2016
Edited: junlong on 17 Mar 2016
I was looking for the same thing, and I think you almost got the answer. Just turn the grid off.
set(gca, 'Layer', 'top');
Azzi Abdelmalek on 4 Feb 2013
Edited: Azzi Abdelmalek on 4 Feb 2013
%do the same for ylabel and zlabel
Maciej Dabrowski on 1 Dec 2020
I didn't work for me as well. I'm getting Error using matlab.graphics.axis.Axes/set
Error setting property 'XLabel' of class 'Axes':
Value must be a handle.
hAx = axes;
I guess I don't see why this wouldn't work:
hAx = axes;
Please post a picture of what you expect, and where.
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!