How to change the font location in mesh?
2 views (last 30 days)
Show older comments
Hello! I have this code to plot my mesh. When I use my Rotate 3D to make it look like a plane, some of the numbers are not visible. I was thinking of placing the numbers like a few mm above where it is right now. I attached an image and you can see my problem. i hope you can help me with this ! Thanks.
d=reshape(Gauss_A,9,9);
mesh(d);
for i=1:size(d,1)
for j=1:size(d,2)
h=text(j, i, d(i,j), num2str(d(i, j)));
set(h, 'hori', 'center', 'vertical', 'bottom', 'color', 'r');
end
end
title('A','FontWeight','bold','FontSize',24);
0 Comments
Answers (0)
See Also
Categories
Find more on Scatter Plots 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!