How to ensure text on plot always in front?
Show older comments
Hi all,
I plot some surfaces and label some points on the surface with it's value of z-axis, as shown on the figure. You can see that the black texts on figure 3-4 are all covered by the surfaces. How can I make sure that the black texts are always in front such that they can be seen?
Many thanks!

4 Comments
José-Luis
on 29 Aug 2017
doc uistack
Xiaohan Du
on 29 Aug 2017
José-Luis
on 29 Aug 2017
A workaround would be to make your shape a bit transparent. Modify the Alpha property. Otherwise, you could try making your text an annotation.
José-Luis
on 29 Aug 2017
Also, it might be a rendering issue. Have you tried saving to file and looking there.
Testing different renderers might also help.
Accepted Answer
More Answers (0)
Categories
Find more on Graphics Object Properties 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!