Alignment of axis labels in 3d graphics in Matlab

I draw grid data with the following matlab commands

[x, y] = meshgrid(-10:0.1:10, -10:0.1:10); z = exp(-x.^2 - y.^2); mesh(x, y, z); xlabel('time variable'); ylabel('space variable'); zlabel('wave'); 

You will see that no matter how you rotate the axes, the x and y marks are always aligned horizontally. Is there a way for it to coincide with the x axis and y axis separately when the axes rotate?

+4
source share
2 answers

A view has appeared for aligning axis labels with the axis of shapes here .

+1
source

You can set the rotation property for each label:

 set(get(gca,'xlabel'),'rotation',angle); %where angle is in degrees 
-1
source

All Articles