When plotting 3D graphs in MATLAB, can the x and y axis labels be made flush with the x-y plane, as shown in the figure below?

1 Comment

Thank you to everyone for your answers. I think I’ve found the method that works best for me — simply adjusting the Property Inspector of the figure gives fairly good results.

Sign in to comment.

 Accepted Answer

There are some File Exchange compositions that seem to be able to do it, e.g.,

1 Comment

Thank you very much for your response, but unfortunately, this method doesn't seem to support LaTeX and Times fonts.

Sign in to comment.

More Answers (2)

If you have a fixed orientation of the axes, try assigning the Orientation or Rotation properties of the tick labels. However I don't think they'll automatically look right if you start interactively spinning the axes around.
@Bruno Luong came up with something similar (How can I rotate the axes' labels parallel to the orientation of the axes?) in 2023. It may not be exactly what you want, however you can experiment with it, and perhaps contact Bruno to see if he can tweak it a bit.

1 Comment

Thank you for your response. The effect of this method seems to be quite similar to manually adjusting the Property Inspector.

Sign in to comment.

Categories

Products

Release

R2023b

Asked:

on 12 Apr 2026

Edited:

on 15 Apr 2026

Community Treasure Hunt

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

Start Hunting!